Results 1 to 2 of 2

Thread: dynamic ajax content , loading external script problem

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

    Default dynamic ajax content , loading external script problem

    1) Script Title: Dynamic Ajax Content

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...jaxcontent.htm

    3) Describe problem: I have a problem loading external scripts with this, i have tried the loadobjs but it still doesnt work. is there any workaround for this?
    and im also wondering is there anyway to tell the page to go back to the main (default) state?
    Last edited by sligatsa; 05-29-2007 at 12:14 AM.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    29,135
    Thanks
    44
    Thanked 3,231 Times in 3,192 Posts
    Blog Entries
    12

    Default

    To go back to the default state, in the demo, just make up a page that has only this on it:

    HTML Code:
    <h2>Choose a page to load.</h2>
    Make that be an option (link). Just make sure that if you are loading any styles, that these will not affect that page or the 'top' page. If you are adding a lot of stuff to the page, the only real way to go back to its default state is to reload it, if it is called demo.htm:

    <a href="demo.htm">Start Over</a>

    Loading a javascript and executing it against newly loaded content are often two different things. Especially, if the script needs to initialize the content. This is usually the case with a script that has an onload event.

    See:

    http://www.dynamicdrive.com/forums/s...ad.php?t=17426
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •