My space web page - CHAPTER 9 THE AJAX APPROACH TO BROWSER

CHAPTER 9 THE AJAX APPROACH TO BROWSER SCRIPTING 267 You ll be familiar with most of the technologies involved within Ajax from earlier chapters in the book. The new concept here is the XMLHttpRequest object. Figure 9-1. The interaction of technologies used in Ajax Understanding the XMLHttpRequest Object In the previous chapter, you saw some of the IE extensions to the XML DOM. The XMLHttpRequest object is another of those extensions. Luckily, other browsers, in addition to IE, support this object, although in a slightly different way. The XMLHttpRequest object is at the heart of the Ajax approach. The XMLHttpRequest object allows web pages to request information from a server using client-side code. The object isn t limited to working with XML. In fact, it can work with any type of document. Microsoft first implemented the XMLHttpRequest ActiveX object in IE 5 for Windows. Mozilla engineers implemented a native version of this functionality for Mozilla 1.0. Safari introduced the object in version 1.2. Before I move on to some examples, it s important to understand the XMLHttpRequest object. Working with the XMLHttpRequest Object In IE, you can create the XMLHttpRequest ActiveX object using xmlhttp = new ActiveXObject(”Msxml2.XMLHTTP”); or xmlhttp = new ActiveXObject(”Microsoft.XMLHTTP”); depending on your MSXML version.
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision J2ee Web Hosting services.

Leave a Reply