Replacing the "No Items Found" message with Javascript

On this page http://www.sedonamagoretreat.org/test in the second "Program Dates" box in the righthand sidebar, I'm attempting to implement a script I found to replace the "No items found" message with a custom html file.
The javascript is here: http://www.sedonamagoretreat.org/js/no-items-found.js and the html file used to replace the message is here: http://www.sedonamagoretreat.org/prog-dates-alternate-content.
I'm sure it's an easy fix and I'm just overlooking something...any suggestions to get this script working are welcome - thanks!
Linda

If it still doesn't work after you move the script then you might need to update your script to the following:
$(document).ready(function() {
     $.each($("."+webapp_wrapper_div), function() {
               if($("." + webapp_wrapper_div).html().indexOf("No items found.") != -1) {
                         $.get(alternate_page_html, function(data) {
                                   $("." + webapp_wrapper_div).append('<div id="ajax-temp" style="display: none;"></div>');
                                   $("#ajax-temp").html(data);
                                   $("." + webapp_wrapper_div).html($("#ajax-temp #" + alternate_page_div).html());
All I did was wrap the if statement in an $.each() function so that it does this to each instance of your web app item list. 
Also, you should probably change your variable for "alternate_page_html" to "/prog-dates-alternate-content" so that this would work on pages that are in a folder in your site.  Without the "/" this might only work on pages that are on the first-level of your site. If you tried this on a page at "/about/contact" then your get request without the "/" would be trying to get "/about/prog-dates-alternate-content" which doesn't exist.

Similar Messages

  • How can i get the NO Items Found message to NOT appear.

    The Help page instructions do NOT work. Do i have to be a paid member to remove? PLEASE HELP!!
    module_webapps
    When placed onto a web page or a template it displays the web app items. ... specify True if you don't want the No Items Found message to be displayed.
    docs.businesscatalyst.com/dev-assets/.../module_webapps.html 

    The documentation is correct.
    1. The new named parameters tab of information is ONLY if you have the new rendering engine on. The legacy tag - use that reference if your not.
    2. If your learning BC it is easier if you go to the admin - pages - web page and use the toolbox to insert a module. You can click the customise link, specify hide message and let the toolbox form the module url for you.

  • Windows could not complete the installation recovery error message with HP recovery discs

    While doing a system recovery on an HP G72-b50US notebook using HP purchased recovery DVD's, the reboot "Welcome" screen always (tried 5 recovery attempts from scratch) generates the error message "Windows could not complete the installation. To install Windows on theis compuiter, restart the installation". any attempt at a reboot, even into safe mode, regenerates this same error message. How does this get fixed to allow completion of the installation process?

    I wish I could tell you.
    I also used the HP factory recovery disks on an 8200 Elite CMT. I used them once before with no problem.
    The second time was a show-stopper. The recovery process would ask for all 4 disks, then the recovery installation would begin, reboot continue on, everything normal.
    Then on the last reboot, when the recovery program stated it was configuring windows, it just quit and stated Windows could not complete the installation.
    I made sure that I had absolutely nothing connected to the PC except the keyboard, mouse and monitor.
    The only thing I can possibly think of was that I installed a Radeon HD 6570 video card which I replaced the Radeon HD 6350 card with. However, both cards are supported in the PC, and I cannot remember if I did the restore with the 6350 the last time or the 6570.
    Now, the reason the ISO file will work is because this is a plain and simple Microsoft Windows 7 ISO file--the very same one that you download when you purchase W7 online from the very same download site.
    It is not PC-specific and will install on any PC in the world.
    A recovery disk is PC-specific, and is a very complicated mish-mash of programs, drivers, operating system, all customized for your specific model PC.  Even something like installing a new hard drive or memory can foul up the works.
    The downside of using the plain MS disk is the only programs and drivers you can install are the ones found on your notebook's support and driver page.
    The upside of using the plain W7 installation, is you normally end up with a better performing PC, free of bloatware and unnecessary running processes.
    For someone like me, it is a non-issue, but for others, they may miss some of the included software.
    But that is better than having a computer that is of no value with no operating system installed, wouldn't you agree?
    Paul

  • I brought a iphone 5c from ebay, when i recieve the i item its loked with i cloud, and also had a tmobile sim card in the slot...now i cant access the phone because its locked with i cloud,i do not have the owner details to contrac him,,

    i brought a iphone 5c from ebay, when i recieve the i item its loked with i cloud, and also had a tmobile sim card in the slot...now i cant access the phone because its locked with i cloud,i do not have the owner details to contrac him....but i called to tmobile, they said this phone is not a stolen one,,thet told me to contrac apple.....is apple can unlock the icloud?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

  • [svn:fx-trunk] 9703: Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default .

    Revision: 9703
    Author:   [email protected]
    Date:     2009-08-27 12:51:06 -0700 (Thu, 27 Aug 2009)
    Log Message:
    Addressing NativeDragManager issue where we would inadvertently replace the users drag drag feedback with our default.
    QE notes: None
    Doc notes:  None     
    Bugs: SDK-20458
    Reviewer: Jason
    Tests run: Checkin
    Is noteworthy for integration: No
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-20458
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/airframework/src/mx/managers/NativeDragManagerImpl.as

  • How do I transfer music from my ipod to my computer without replacing the music on my ipod with the music on my computer?

    How do I transfer music from my ipod to my computer without replacing the music on my ipod with the music on my computer?

    You can't do that with iTunes (except for songs you purchased from the iTunes Store).  However, there are third-party methods and utilities that can transfer songs files from iPod to computer.  If you do a Google search on something like "ipod transfer," you should get some links.
    Once the songs files are on your computer, add them to your iTunes library.  Then, you can sync your iPod to that iTunes library, as desired.

  • Can i replace the casing on a 5G with a 6G  case?

    can i replace the casing on a 5G with a 6G  case?

    I wouldnt suggest doing that type of modification.  Apple will not do that for you.  If you are intent on that keyboard and your MB Air has bluetooth spend the extra $20 and get the wireless one.

  • I just purchased an iPhone 5 and my phone has many duplicate contacts on it.  I want to edit my contact list that's saved on the cloud and then replace the contacts on my phone with the edited list.  I have spent hours but no success yet.

    I just purchased an iPhone 5 and my phone has many duplicate contacts on it.  I want to edit my contact list that's saved on the cloud and then replace the contacts on my phone with the edited list.  I have spent hours but no success yet.

    Okay
    So when you edit in iCloud you are not seeing an update on your iphone?.  I just did a test in iCloud.com and it changed my iPhone contact list in less than 1 second.  So iCloud is functioning fine.
    If you delete all the contacts on your iPhone and if you are properly synced they will all be wiped out on iCloud.....ugh!  So let's not do that...
    Your plan should be to make all the changes in iCloud and have them flow down to your iPhone.  That sounds what you are trying to do anyway.
    So. if you delete a contact in iCloud or edit a contact in iCloud then you are not seeing the changes on your iPhone?
    If so then they are not properly synced..... but I wonder how you have any contacts in iCloud.
    Let me know if you are seeing any changes, if mot then we can review the syncing set-up.
    Cheers

  • Win7, DW CS6, Find and Replace, Problem: The "Done or Found" message is cut off based on your SEARCH dropdown choice.

    The Find and Replace "Done or Found" message is partially cut off for "Search" dropdown choices "Source Code, Text, Text (Advanced), but not for "Specific Tag". It appears to be a programming bug sizing the "Find" and "Replace" text boxes too big for the "find and Replace" window. Has anyone else encountered this problem.

    Excuse me for resurrecting this, but I have been living with this same issue, and many more issues (I won't list them here), since migrating to CS5 (understood this thread is for CS6. However, my post is relevant none the less). If anyone has the fix I would love to know what they found. But sadly, I doubt there is one.
    My system and display settings are also Win7 at 100% display. When doing a Find and Replace I can barely see what the results are for how many occurrences in the find window because the bottom is cutting off half of the text, just like the OP screen shot above. If the results reads "Done. 2 items found" it can easily be mistaken for "Done. 3 items found" if I don't study it carefully because of the bottom half of the "2" is cut off.
    I don't want to rant here, but I will a little which I'll confess is the real purpose of my post. I am so disappointed in Adobe for so many different bugs in their software suite which they choose not to address, or even acknowledge as existing. I've had their tech support on the phone while they were recording my screen as I recreated issues for them, they never got back to me on any of them. I just got lip service how their engineers are looking into it and they'll get back to me. This of course was when CS5 still had free support under warranty.
    At this point I'm numb to it all and I'm stuck using their software because I'm used to it, which ultimately is their goal anyway I'm sure. You win Adobe.
    BTW...if anyone replies, please do not suggest the basic troubleshooting steps. All of the issues I've had exists after multiple re-installs on formatted hard drives and on both of my PCs made by two different manufacturers with different hardware specs (both exceeded min hardware requirements). Not to mention been through various techniques while on the phone with them..
    Ahh... I feel better now.

  • How can I search and replace the order items appear in the document?

    Here is my script. I am trying to replace instances of a text pattern (Lot ^9^9^9^9^9) with an auto incremented number Lot 1, Lot 2, Lot 3, etc... I believe this script produces unexpected results becuase the search result is ordered by document construction. The first item in myfounditems is the last item added to the document (which is on the last pages of the document), the second item in myfounditems is the next to last item that was added to the document (which was moved to a middle page in the document). The net result is that instead of having the first item on the first page being Lot 1) and the item directly below it being Lot 2), my document is a hodgepodge of Lot numbers is a seeminlgly random order. Any thoughts on how to fix this?
    tell application "Adobe InDesign CS5.5"
      --Clear the find/change preferences.
              set find text preferences to nothing
              set change text preferences to nothing
      --Search the document for the string "lot".
              set find what of find text preferences to "Lot ^9^9^9^9^9)"
      #set change to of change text preferences to "Lot " & lotnum & ")"
      --Set the find options.
              set case sensitive of find change text options to false
              set include footnotes of find change text options to false
              set include hidden layers of find change text options to false
              set include locked layers for find of find change text options to false
              set include locked stories for find of find change text options to false
              set include master pages of find change text options to false
              set whole word of find change text options to false
              tell active document
                        set lotnum to 1
                        set myFoundItems to find text
                        repeat with foundItem in myFoundItems
                                  set contents of object reference of foundItem to "Lot " & lotnum & ")"
                                  set lotnum to lotnum + 1
                        end repeat
              end tell
    end tell
    display dialog ("Numbered " & (count myFoundItems) & " lots in this document. Next starting lot number is " & lotnum & ".")

    You noticed the first one yourself: the Found item list seems to randomly jump around the document -- I believe you are correct in your observation it may be due to the object construction order. That tells me, by the way, something about your lot numbers that tou didn't mention: your text is not one continuous long threaded story, but it's all or partially in disconnected etxt frames. The Found list does return everything inside a single story in the correct order, but it goes over each separate story in the order they were constructed.
    The only solution is to gather all of your lot numbers, *re-sort* them according to the page number they appear on (and some sort of Worst Case Scenario is when you might have more than one lot number frame per page; in that case you also need to sort by textframe, top to bottom -- yet even worse is if you also may have these textframes side by side!).
    Only then you have a reliable counting order.
    This isn't too bad. We can just extend the method I offered for sorting top-to-bottom/left-to-right in Re: Working around the frame selection order issue in CS 4 and make it also include page numbers:
    function byPageYX(a,b) {
        var
            aP = a.parentTextFrames[0].parentPage.index,
            bP = b.parentTextFrames[0].parentPage.index,
            aY = a.baseline[0],
            bY = b.baseline[0],
            aX = a.horizontalOffset[1],
            bX = b.horizontalOffset[1],
            dP = aP-bP,
            dy = aY-bY,
            dx = aX-bX;
        return dP?dP:(dy?dy:dx);
    myResults.sort(byPageYX);
    Or something like that.
    As for actually implementing the above I cannot be of any help with Applescript.
    Once we're dealing with sorting I think you're much better off in Javascript anyhow.

  • Error while clearing the open items - Error Message GLT2152

    Dear Forum,
    While clearing the open items in the Customer Account with the Bank receipt we get the error message -
    Account Determination 01001/missing Message No. GLT2152 The following error occured for the document you entered -
    The online document splitting is active in the system.
    The account determination does not exist yet and document cannot be posted.
    Procedure - Either check the splitting rule or create the account determination key.
    Would need your help as to how to resolve this and what to check.
    Thanks!
    Regards

    HI Murli,
    Thanks for the prompt response, I have checked in OB09, this refers to the Account Determination for OI Exchange Rate Differences and the entries maintained appear to be ok. What else could be the issue?
    Regards

  • Replacing the M.2. cache drive with 256GB SSD in Yoga 14

    Hope this is the right forum--didn't see one for the ThinkPad Yoga 14. I just picked-up a TPY 14 on Craigslist where the previous user had replaced the 1TB spinning drive with a 250GB Samsung 840 EVO drive. While this is very performant, the space is limiting. So my thought is to put the 1TB drive back in and replace the 16GB M.2 cache drive with a 256GB M.2 mSATA drive. Then I can run the OS/apps off of the mSATA drive and keep my data on the spinning disk. I'm not familiar with the M.2 interface and don't know what to expect in terms of performance, however. I know it will be drive dependant, but is the any reason to believe this will be noticably slower (or faster) than having a standard SSD? (Crystaldisk numbers would be great if anyone has this setup.) Also, if I put the 1TB spinning disk back in, am I likely to lose battery life (compared to the Samsung 840)? I know I should be able to answer that question, but I've never run this machine with the original disk. Thanks!

    while i was around updating my thread, i figured i would chime in. i dont own your model or have expiriance with m.2 drives, however, if you look up the m.2 spec youl see that its basically just a micro version of the SATA port with a few extra bells and whistles, so it will be just as fast as your current SSD drive, only smaller. as to the battery drain by adding in the mechanical, yes, mechanicals use more power than SSD, you can sort of mitigate that by using a 5400 RPM drive instead of 7200 RPM (at the cost of access speed) and allow the drive to go to "sleep" when not used, that would work best by using the m.2 as the o/s drive, and the mechincal for data/programs. but, you might want to look in to things, i know on another system i own (none lenovo) it has an mSATA port, that port can be used to speed up the system with a cache drive using IRST, however, thats "all" the port can be used for, the system manu has it hard coded in the bios to not allow it for anything else, i found that out the hard way when i tried to use that port as the O/S drive instead... so keep digging. and i wish you luck.

  • I want to sync the songs on my Mac to my iPod, but it says An iPod can be synced with only one iTunes library at a time. Erasing and syncing replaces the contents of this iPod with the contents of this iTunes library.' Will this reset my iPod completely?

    I want to sync the songs on my Mac to my iPod, but it says, 'An iPod can only be synced to one iTunes Library at a time. Erasing and syncing replaces the contents of this iTunes Library.' Will this reset my iPod completely (my iPod is 4th gen)?

    Was your iPod associated with a different mac or pc previously is all. And was it backed up or sync'd on this mac with iTunes previously.
    http://www.apple.com/support/itunes

  • Replacing the "No rows returned" message in Portlets

    Hi all,
    How to remove (or replace) the default message that comes in each Portlet if the query doesnot return anything ? By default the Portlet shows the message "No rows returned" , how to customize it or remove it.
    Ayman

    It's not possible to replace this message, but you can do a such workaround :
    if your portlet (s) are built from SQL query, change it so :
    select a1,a2,a3 from table ...
    UNION
    select null a1,null a2,null a3 from dual
    In this case your query is not empty, so you're able to bide the mentioned message.
    Hope, it helps.
    Izabella.

  • How to cancel the No receiver found messages in XI

    Hi Experts,
    Could you please help me here, how to cancel the no receiver found error messages in XI?
    I have tried to cancel it , but it is not working. Please let me know know the process?
    Thanks in Advance.
    Best Regards,
    Madhu.

    Hi,
    If the error message is of red flagged, then you can cancel the message.
    You can use the report 'RSXMB_CANCEL_MESSAGES' to cancel the error messages.
    If the message is of synchronous, it cannot be cancelled.
    Thanks,
    Kanda

Maybe you are looking for

  • Graphics Card not Recognised on Z97 Gaming 9 AC

    Hi, I'm hoping someone here can help me. I have a Z97 Gaming 9 AC Motherboard and a Zotac GTX970 Graphics card. All 3 PCIe slots are showing as empty in the Bios. I have to use the onboard HDMI to get into Windows 7. I've tried updating the Bios to t

  • HP Printers and Mac OS 10.5 Problems

    I have had very similar problems with a my HP All in One printer since switching to OS 10.5, prints but no scanning. I have tried pretty much every 'solution' posted here and on other Mac related forums but nothing so far has worked. I really need to

  • How do i remove my credit card from my iphone 5?

    How do I remove my credit card information from my Iphone 5?

  • Profit Center not populated in Asset Transactions

    Hi We are trying to post asset transactions. We are on ECC 6.0 with New GL and document splitting on profit Center. while posting the periodic depreciation, system is not allowing posting of the document, saying that profit center is not populating i

  • Can't register my dw cs4 on new pc

    Hello, I have a new laptop and cant get the install to complete because it wont accept the DW MX2004 serial number even though the CS4 is serial number is accepted. thanks for your help