Hey,
I have a link on a web page where I would like it to load the linked page into a specific DIV on my site.
Does anyone know how to do this? I assume some JS/AJAX will be involved but I wouldn't know where to start.
Thanks![]()

Hey,
I have a link on a web page where I would like it to load the linked page into a specific DIV on my site.
Does anyone know how to do this? I assume some JS/AJAX will be involved but I wouldn't know where to start.
Thanks![]()
show code that you did, should work so you must of did wrong![]()
Use jQuery, it's much better than the other AJAX / Javascript effects classes IMO.
http://jquery.com/
Just include the script include, then do:
More info about the jQuery load() function:Code:<a href="javascript:$('#div_id_here').load(rootdomain+'/static/privacy.php');">privacy1</a>
http://api.jquery.com/load/
Edit - Just a second note, with AJAX, the requested page has to be on the same domain/subdomain.
XMLHTTPRequest, job done.
Want to hide these adverts? Register an account for free!