PDA

View Full Version : Load webpage in to div onload



Nigejk
02-13-2011, 03:09 PM
My website uses ajax to load other webpages in to a div. I would like to load a webpage into the div when the website is loaded.

I thought I would be able to do this using body onload but am not having any joy.

djr33
02-13-2011, 06:08 PM
You will find some Ajax scripts here:
http://www.dynamicdrive.com/dynamicindex17/indexb.html

And if you want help with a specific page, you must post a link to it so that we can investigate the problem. (You could also post the source code, but linking us to a page will make helping you much easier and faster.)

Nigejk
02-14-2011, 04:44 PM
I have a div called "container" and I have succesfully managed to load a page into it from the toolbar on Dreamweaver which I am using. Unfortunately it doesn't work in an actual web browser. (Maybe a locating the page problem?)

The idea is that the logo toolbar etc is constant and the webpage changes in the div "container" underneath.

I also want to load a page into container automatically when the website is loaded.

Site http://www.pa-ad.co.uk/