AJAX: Meet Sitepoint
Thursday, March 23rd, 2006Cha-Ching! Todays heads up goes to SitePoint, who have the most flexible method I’ve seen to construct an xmlHTTPRequest object in Javascript. It allows to return the content text raw, or pass off the content as a paramater to another Javascript callback module.
Naturally, I had to modify the code so that I could pass more than just the XML response text as a paramater to the callback function, but hey, it was better than any other example I found out there!
If you don’t know about XMLHttpRequest, it’s similar to an IFRAME in that it allows a browser request without refreshing the page. Very useful for making live web apps, when most of the information needed is on the server…much nicer experience