Next I will briefly introduce the Ajax technology and its simple application. Note: the theoretical knowledge mainly comes from Ajax programming technology and examples. All codes passed the test in IE6.0, Firefox, and Opera9.0. What is Ajax: Ajax (AsynchronousJ
Next I will briefly introduce the Ajax technology and its simple application.
Note: the theoretical knowledge mainly comes from Ajax programming technology and examples. All codes passed the test in IE 6.0, Firefox, and Opera9.0.
What is Ajax: Ajax (Asynchronous Javascrpt And Xml) is a browser technology that enables Asynchronous communication between browsers And servers for data communication, this allows the browser to obtain a small amount of information from the server instead of refreshing the entire page. Ajax is not a new technology, or it is not a technology, but a combination of multiple technologies: javascript, Html, Css, Dom, Xml, XMLHttpRequest, and other technologies constitute Ajax by playing their respective roles in collaboration in a certain way.
Javascript, Html, and Css are essential knowledge for WEB Programmers. we will not introduce them here. next we will introduce XMLHttpRequest. It can be said that XMLHttpRequest is the core of Ajax technology, and Ajax cannot work without it.
XMLHttpRequest: XMLHttpRequest is an object of the XMLHttp component. XMLHttpRequest can be used to implement asynchronous communication between the browser and the server. Through the HttpRequest object, the Web application can submit information to the server without refreshing the page, and then obtain the server-side response information.
How to use XMLHttpRequest object: to use XMLHttpRequest, you must first create an XMLHttpRequest object.
Example:
Copy the content to the clipboard code: