Microsoft invented the XMLHttpRequest object for Internet Explorer, but it's now supported in Safari, Opera and Mozilla browsers, although the underlying implementation is different. Still, the interfaces are similar enough thatwith a little effortyou can use the XMLHttpRequest object to exchange data with servers, no matter which browser is running.
by Nigel McFarlane
Aug 16, 2005
Page 1 of 3
he World Wide Web has traditionally used a book or slideshow metaphor as the basis for navigation between hyperlinks. Clicking on a link is like flicking from one page to another in a book or magazine, or like operating a slideshow projectorclick a button or link, and a new page or slide appears. But those metaphors don't work well for all applications. This article describes a modern way to proceed when you want to expose information without changing pages. The XMLHttpRequest objectnow widely availableis the answer.
The Web wasn't originally intended for application delivery, but that's what many HTML-based Web sites provide. Such applications attempt to present a user interface that is less like a book and more like a control console. Examples of real-world consoles are sound engineer's decks and air traffic control systems. Users expect to be able to operate the console controls without each operation replacing the entire console with a fresh copy. In other words, they want the console to stay where it is while they work.
A better solution is to throw out the page metaphor entirely and craft a way to submit form data directly from the current page, but without changing the current page view. That's what the XMLHttpRequest object does for you, and in such a natural way that its future popularity is assured.
What You Need
Internet Explorer, or nearly any other modern Web browser, such as Firefox, Camino, Epiphany, Mozilla Application Suite, Netscape Navigator 6+, K-Meleon, etc.
Editor's Note: The editorial staff of DevX would like to add our condolences to the voices of so many around the Web. Our longtime author and friend, Nigel McFarlane, passed away in June 2005. This article is one of two that Nigel wrote for us before his death; they are published with the permission of his family. Nigel McFarlane was the author of two books and a frequent contributor to Mozilla and the open source movement. Lori Piquet