View Full Version : dynamic ajax content , loading external script problem

05-28-2007, 10:43 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.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?

05-29-2007, 05:30 AM
To go back to the default state, in the demo, just make up a page that has only this on it:

<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.