chiefdave
07-27-2006, 02:52 PM
Script: Dynamic Ajax Content
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
couple of questions about this script, prob simple stuff but this is the first time i've used any code like this.
i have a div i'm pulling content into:
<div class="scrollframe" id="contentarea"></div>
i then link to it from the menu:
<a href="javascript:ajaxpage('news.html', 'contentarea');" class="navlink">NEWS</a>
my question is how do i get the content of news.html to load into content area when the page first loads, as you can see (www.thesuffrajets.com/index2.html) when the page first loads the main window is being left blank.
secondly i have a problem with alignment when other pages are being pulled in, they don't always display from the top (if you click around on the above link you'll see what i mean), any ideas how to get round that problem?
http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
couple of questions about this script, prob simple stuff but this is the first time i've used any code like this.
i have a div i'm pulling content into:
<div class="scrollframe" id="contentarea"></div>
i then link to it from the menu:
<a href="javascript:ajaxpage('news.html', 'contentarea');" class="navlink">NEWS</a>
my question is how do i get the content of news.html to load into content area when the page first loads, as you can see (www.thesuffrajets.com/index2.html) when the page first loads the main window is being left blank.
secondly i have a problem with alignment when other pages are being pulled in, they don't always display from the top (if you click around on the above link you'll see what i mean), any ideas how to get round that problem?