AJAX Without XML HTTP RequestsPosted by Kevin Trachier in Development, Tips and Tricks
What is AJAX?
What are XML HTTP requests?
Passing information from your server to your end user’s browser is handled over HTTP in the form of HTML. The browser then takes that info and formats it in a way the end user can view it easily. What if we want to change some of the data in the HTML without loading a whole new HTML document? That’s where XML comes in. Your web page needs to tell the browser to ask for the XML from the server; luckily, all browsers have a function called
XmlHttpRequest(). Once it’s called, it will poll the server for XML data.
Why shouldn’t you use XML HTTP requests?
A long time ago, in a galaxy far, far away, Microsoft invented the
XmlHttpRequest() object for Microsoft Exchange Server 2000. As with all first generation technologies, everyone wanted to use it, and some people implemented it differently. IE didn’t even have native support until 2006, and there are still some discrepancies in various browsers when studying the
What’s an Alternative?
clearTags) automatically clears out the checkboxes on load, the second (
check(box)) makes sure that only one box is checked at a time, the third (
createScript) is the interesting one; it uses the