Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: ajax fetching problem

  1. #11
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Do you mean the loading gif keeps running even after the "blank" page is loaded, or just for a brief second? There is no way to individually turn off the "loading" image when fetching select Ajax content- it's all or nothing.

  2. #12
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    when click the [x] button, the tab content area can close, but the loading gif and the loading message re-apprears, it won't stop until click a tab.

  3. #13
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Hmm make sure "blank.htm" actually exists, so you're not loading a non existent blank page. Another way to create a close button is actually just to empty out the contents of the content DIV, something like:
    Code:
    <p><a href="javascript:document.getElementById('whatever').innerHTML=''">Close</a></p>
    You'll need to change whatever to the ID of the content DIV:

    Code:
    <div id="countrydivcontainer" style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
    //Optional default content here.
    </div>

  4. #14
    Join Date
    Jan 2008
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks mate! any advice to get rid of the loading gif, when the tab content area is closed?

  5. #15
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Quote Originally Posted by whoami View Post
    thanks mate! any advice to get rid of the loading gif, when the tab content area is closed?
    Hmm the loading gif should only appear briefly if you're using the "blank" page technique. If you're using the "empty" technique that I posted at the very end, the loading gif should never appear at all when it's run.

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
  •