Cha-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 :)

Written on March 23rd, 2006 , Uncategorized

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something is proudly powered by WordPress and the Theme Adventure by Eric Schwarz
Entries (RSS) and Comments (RSS).

SirSpanky.com – The Secret Diary of James Pearce Aged 20-Something

Personal jorunal of a professional geek – James Pearce in Perth, Australia