AJAX Asynchronous event handling JavaScript client emplacement XML record exchange with server AJAX 1 ajax and XMLHttpRequest ? The javascript XMLHttpRequest object is used to bargon a query to the server. ? ? ? must not be a third party server! The query can be anything (GET/POST/HEAD). The content comes back to the client (javascript) as an XML document. The client parses the XML and decides what to do (update part of the current HTML document, etc). AJAX 2 XMLHttpRequest ? offset printing introduced by MS as an ActiveX object ? ? Prior to this, MS had been promoting the use of Java for client-side networking. Netscape (and others) realised the potential and followed MS. There are (of course) differences between how MS and bothone else supports this object. W3C is working on a old-hat AJAX 3 Smarter customers ? ? ? With javascript networking capability, clients (web pages) can do to a greater extent. It is no longer requi site to force a complete document refresh every fourth dimension the user does anything. There are many important ajax applications: google maps, gmail and google suggest many another(prenominal) others AJAX 4 Programming with Ajax ? Client side: building an HTTP beg and sending it. receiving HTTP serve ? checking for errors including HTTP errors.
? Parsing HTTP reply (typically an XML document). modify HTML elements in the current page. Server side: Generating XML documents The authentic HTML comes from the server... AJAX 5 Creating an XMLHttpRequest Object ? For IE: http_request = novel ActiveXObject(Msxml2.XMLHTTP); -or possibly- http_reque st = new ActiveXObject(Microsoft.XMLHTTP); ! ? Netscape/Mozilla/Firefox/Safari: http_request = new XMLHttpRequest(); See AJAX: Getting Started for more details. AJAX 6 Some XMLHttpRequest Properties readyState: indicates that state of the transaction 0: uninitialized, 1:loading, ... 4 means done. onreadystatechange: the callback social role (async only)....If you want to get a full essay, order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment