Using the changeScript function I created in 2003. ALOT easier than ajax.....
http://www.sitepoint.com/forums/showthread.php?t=135179
use in this way....
Code:
el.onclick=function(){changeScript("new_content.js");return false;}
and then new_content.js.....
Code:
el.innerHTML="<h1>This is new Content</h1>";
I realy don't understand why most people use ajax unless you want to get code from another server. Why use javascript, convert it to a XMLHTTPresponse request, send it to the server, get back XML, convert it to html and embed it? Very long winded, when you can just send a javascript request to the server, which replies with the javascript code to make the changes.
My livescript method is sooooo much easier.
Bookmarks