
I'm loving your creative analogy but it's not really the same, is it? If he is able to code some basic languages already, it's pretty easy to pick things up; I certainly did this with Actionscript 3. Sorry that my inferior mind doesn't comprehend the same logic as yours, but I am sure we can stop pushing this further off-topic now![]()
Thanks for the help, but it still isn't working :SUse 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.
Helpful! :XCode:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>Administration Panel</title> <link REL="stylesheet" href="adminstyle.css" media="screen" type="text/css" lang="en"/> <script type="text/javascript" src="../jquery-1.4.2.js"></script> </head> <body> <div id="AdminIn2Nav"> <a href="javascript:$('#AdminIn2Content').load(rootdomain+'/content/home.php');">Admin Home</a> <br /> <a href="javascript:$('#AdminIn2Content').load(rootdomain+'/content/userman.php');">User Manager</a><br /> </div> <div id="AdminIn2Content"> </div> </body> </html>
Try this instead:
If not, link me the page you're having problems with.Code:<a href="javascript:void(0);" onclick="$('#AdminIn2Content').load('content/home.php');">Admin Home</a>
Want to hide these adverts? Register an account for free!