Ajax (Ajax development)
Ajax, "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML), refers to a web development technology that creates interactive Web applications.
AJAX = Asynchronous JavaScript and XML (a subset of standard generic markup languages).
AJAX is a technique for creating fast-moving web pages.
AJAX enables asynchronous updating of Web pages by making a small amount of data exchange in the background with the server. This means you can update portions of a Web page without reloading the entire page.
Traditional Web pages (without AJAX) if you need to update the content, you must overload the entire page page.
Now the general website is to use AJAX to achieve the page without refreshing operation.
What is no refresh: Ajax can realize the page and the background of the data interaction, the user completely feel no page has any refresh, this is Ajax no refresh.
Ajax method implementations:
Ajax can be encapsulated to facilitate the invocation of each page:
?
1 2 3 4 5 6 7 8 9 () | function myajax (type, URL, call Back, data, DataType, Asynctype) {if (DataType = null) {DataType = "text";} if (Asynctype = null) {Asynctype = Tru E } $.ajax ({type:type,//Post or get url:url,//url preferably add a url+math.random () to ensure that each requested page is considered different by the browser data:data,//Here is the parameter to pass, lattice Type is data: "{paraname:paravalue}" Datatype:datatype,//string,xml,script,json,text Async:asynctype,//synchronous asynchronous True/false Error:function