Results 1 to 5 of 5

Thread: Dynamic Ajax Content - Loading Message

  1. #1
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content - Loading Message

    I'm using this script:

    http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    How do I add so that a loading message such as "Loading Page..." shows up when the content is being loaded?


    Thanks.

  2. #2
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for not searching before posting.

    Solution found here.
    http://www.dynamicdrive.com/forums/s...oading+Message

  3. #3
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just one question. How do I apply the solution to this script?

    http://dynamicdrive.com/dynamicindex17/ajaxincludes.htm

  4. #4
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Find this in the code:

    Code:
    function writecontent(page_request){
    if (window.location.href.indexOf("http")==-1 || page_request.status==200)
    document.write(page_request.responseText)
    }
    and add change it to this:

    Code:
    function writecontent(page_request){
     if (window.location.href.indexOf("http")==-1 || page_request.status==200)  {
         document.write(page_request.responseText);
     }
     
     else {
         document.write("Loading Content....Please Wait!");
     }
    
    
    }
    Hope this helps.

  5. #5
    Join Date
    Feb 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •