Jahova
27-05-2008, 04:02 PM
- SOLVED -
I've got my AJAX working, so if you click a link, It will load the page into the selected DIV.
But how would I load somthing into the div, when the rest of the site loads, if you know what I mean.
***
So say when you visit mysite.com - The layout loads.
But atm I have the div with just 'AJAX CODE HERE', as text, in it.
I want some AJAX code that'll make home.html load as soon as someone visits mysite.com.
***
I'm awkward at explaining this but here's some help;
When a link is clicked; javascript:ajaxpage('home.html', 'content');
Div HTML; <div id="content" class="style3">AJAX CODE HERE</div>
The AJAX CODE HERE is what shows when the page first loads.
- TomSpit
EDIT: At the moment, I am using; http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
I've got my AJAX working, so if you click a link, It will load the page into the selected DIV.
But how would I load somthing into the div, when the rest of the site loads, if you know what I mean.
***
So say when you visit mysite.com - The layout loads.
But atm I have the div with just 'AJAX CODE HERE', as text, in it.
I want some AJAX code that'll make home.html load as soon as someone visits mysite.com.
***
I'm awkward at explaining this but here's some help;
When a link is clicked; javascript:ajaxpage('home.html', 'content');
Div HTML; <div id="content" class="style3">AJAX CODE HERE</div>
The AJAX CODE HERE is what shows when the page first loads.
- TomSpit
EDIT: At the moment, I am using; http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm