PDA

View Full Version : Preload Dynamic Ajax Content page?



dmwhipp
06-18-2012, 06:53 PM
1) Script Title: Dynamic Ajax Content

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem: I have the script working perfectly on the following page: http://www.cisfl.org/ourmodel.html But is it possible to have it so you can automatically load the first external script?

For example, the hyperlink The Dropout Problem loads model01.html when clicked on, but I would like that to have it automatically appear when the main page http://www.cisfl.org/ourmodel.html is loading, rather than having to click first.

Thanks,
Deborah

ddadmin
06-19-2012, 03:08 AM
Well, the function:

ajaxpage('test.htm', 'contentarea')

when called loads a Ajax page into the specified DIV (with id "contentarea" in this case). So what you can do is just call the above at the end of your page to automatically load a page:


<script>

ajaxpage('test.htm', 'contentarea')

</script>

dmwhipp
06-19-2012, 01:21 PM
Thanks so much - it turned out pefectly: http://www.cisfl.org/ourmodel.html
Deborah