BYTE.com
RSS feed

Newsletter
Free E-mail Newsletter from BYTE.com
Email Address
First Name
Last Name




 
    
             
BYTE.com > Mr. Computer Language Person > 2005

AJAX: Making Web Pages Responsive

By Martin Heller

September 12, 2005

(AJAX: Making Web Pages Responsive :  Page 1 of 1 )



In my July column, I touched briefly on AJAX, in the context of Ruby on Rails and the Microsoft Atlas announcement. I'd like to expand on that a bit.

As I said in July, AJAX (Asynchronous JavaScript and XML) is built on Dynamic HTML and client-side scripting, and gives you lightweight client-side code that lets you update a page without a server round-trip. What's added in AJAX over DHTML is the use of the Microsoft XMLHttpRequest object to interchange and manipulate data asynchronously with the Web server.

I have since learned that the XMLHttpRequest object was introduced by the Microsoft Outlook team to make Outlook Web Access (OWA) more usable. It's more usual for journalists to talk about Gmail and Flickr when they discuss AJAX, but let's give credit where credit is due: it was a Microsoft innovation at its core, and it's several years old.

AJAX has been popularized by, among others, Jesse James Garrett of Adaptive Path, who coined the term in a February 18, 2005 article, which gives a pretty good overview of the technology. I also recommend the Wikipedia article on AJAX programming, which not only explains the model but also has a good list of external links for AJAX articles, portals, scripts, and libraries.

The XMLHTTP interface is a helper API for MSXML, goes back to MSXML 2.0, and is supported in Microsoft Internet Explorer (IE) 5.0 or later. In the following simple JScript example (from Microsoft's documentation), a client script creates an XMLHTTP object and asks a server for an XML document. The server sends back the XML document, which is then displayed in a message box.

var xmlHttpReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
xmlHttpReq.open("GET", "http://localhost/books.xml", false);
xmlHttpReq.send();
WScript.Echo(xmlHttpReq.responseText);

So, the XMLHttpRequest object provides a client-side protocol support for communication with HTTP servers.

 Page 1 of 1 


BYTE.com > Mr. Computer Language Person > 2005
Dr. Dobb's Media Center
BYTE.com Store

BYTE CD-ROM
NOW, on one CD-ROM, you can instantly access more than 8 years of BYTE.
 
The Best of BYTE: Volume 2 - Heuristic Algorithms
The Best of BYTE: Volume 2 - Heuristic Algorithms
In this volume of Best of BYTE, we explore the emergence of some heuristic algorithms. Although we have only scratched the surface of this intriguing subject, we hope we've suggested the potential of the synthesis of heuristics and algorithms.

© 2008 Think Services, Privacy Policy, Terms of Service, United Business Media Limited
Site comments: webmaster@byte.com
Web Sites: BYTE.com, dotnetjunkies.com, Dr. Dobb's Journal, SD Expo, Sys Admin, sqljunkies.com, Unixreview



MarketPlace
IT Service Management that Delivers. Real Value. Real Flexibility. Real Results. Free Demo.
Fast online exception analysis. Capture customer crash data online.
One Stop to Buy All Your Business IT Solutions. Browse Through Dell's Best Deals Online Now!
Find Scalable and Secure Dell� Network Server Solutions at Dell� - Official Site.
Advance Your Business Technology Now with the Thin and Portable Business Solutions at Dell.com Now!
Wanna see your ad here?
 

web2