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

Thread: Problems getting loadobjs to work properly when implementing Dynamic Ajax Content

  1. #11
    Join Date
    Apr 2010
    Location
    Manchester
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi, i have tried using the script you suggested but I am still unsure as to when I call the css and js files. I have re-uploaded what i did to the same link. As you can see, there is no css or .js being applied to the content loaded in.
    Sorry again if I am being a bit dunse.

  2. #12
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    I applied another method that seems to work.
    Demo HERE.
    There'a a download possibility. Examine the sources of the files.
    Once you've downloaded it, I'll remove it.
    ===
    Arie.

  3. #13
    Join Date
    Apr 2010
    Location
    Manchester
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thats great, thankyou so much. One issue I have is that when you switch content, the div seems to flash white. Is there anyway to get rid of this?

  4. #14
    Join Date
    Sep 2007
    Location
    The Netherlands
    Posts
    1,881
    Thanks
    49
    Thanked 266 Times in 258 Posts
    Blog Entries
    56

    Default

    In web.html, you have the following function:
    Code:
    function include(url) {      
    window.frames.dataFrame.window.location.replace(url);
    }
    Replace it with:
    Code:
    function include(url) {
    document.getElementById('content').style.visibility='hidden';      
    window.frames.dataFrame.window.location.replace(url);
    setTimeout('document.getElementById("content").style.visibility="visible"',250)
    }
    That will take away the flash. (You may have to increase the value for the timeout).
    ===
    Arie.
    Last edited by molendijk; 04-08-2010 at 02:25 PM. Reason: Correction

  5. #15
    Join Date
    Apr 2010
    Location
    Manchester
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Works a treat, thanks so much for your help.

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
  •