An example of the definition of ajax and its use
This article introduces the relevant knowledge of "examples and use of the definition of ajax". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
AJAX, whose full name is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), is a web development technology for creating interactive web applications. It uses:
* use XHTML+CSS to represent information
* use JavaScript to operate DOM (Document Object Model) for dynamic display and interaction
* use XML and XSLT for data exchange and related operations
* use XMLHttpRequest objects to exchange data asynchronously with Web servers
* use JavaScript to tie everything together.
Example of an ajax definition:
Var xmlhttp;if (window.XMLHttpRequest) {/ / code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest ();} else {/ / code for IE6, IE5 xmlhttp=new ActiveXObject ("Microsoft.XMLHTTP");}
Ajax uses:
Xhr.open ('get','default.aspx,false'); / / prepare synchronization request xhr.send (); if (xhr.status > = 200 & & xhr.status