The core of Ajax technology is the XMLHTTPRequest object (xhr ).XMLHTTPRequest objectCreate an xhr object in the browser as follows and use the XMLHttpRequest constructor.VaR xhr = new XMLHttpRequest ();Xhr usageXhr. Open ("get", "example. php",
Dom implementation in Javascript allows us to perform Dom operations on HTML and XML data through JavaScript code in Ajax, so as to dynamically modify and update pages and extract data. Dom concepts The Dom Document Object Model allows programs
Ajax = Asynchronous JavaScript and XML. Ajax is a technology used to create fast dynamic web pages. By performing a small amount of data exchange with the server in the background, AJAX can implement asynchronous updates on webpages. This means that
I. Ajax stands for Asynchronous JavaScript and XML. Asynchronous is asynchronous, which is different from the synchronous method used in traditional web development.
II:About synchronous and asynchronous
Asynchronous transmission is
For example, the model class is as follows: Teacher, Public class teacher {Private integer ID;Priavte string name;Private School;}And school, public class school {Private integer ID;Priavte string name;}The above teacher, school saves the getter and
Ajax =ASynchronousJAvascript +XML,It is a technology that updates some webpages without the need to reload the entire webpage.
By performing a small amount of data exchange with the server in the background, AJAX can implement asynchronous updates
XMLHTTPRequest object details
1. In Ajax applications, we use the XMLHTTPRequest object to send requests asynchronously. Such requests can be both get and post requests with request parameters.
After the request is sent out, the server response will
Ajax comprehension:
1. ajax is a mechanism between the client and the server, but this mechanism is on the front-end. It uses the idle functions of the front-end to exchange data between the front-end and the back-end, in order to enhance user
URL: String-type parameter (the current page address by default.
Type: a parameter of the string type. The request method (post or get) is get by default. Note other HTTP request methods, such as put and
Delete can also be used, but only some
The updatepanel control is also one of the most commonly used controls in Ajax. The updatepanel control is used to partially update the content on the webpage. The content to be partially updated on the webpage must be placed in the updatepanel
Ajax requests. After the request, we need to get the return value, or one or more, and then perform the logic judgment based on the return value. Then, if we only have a single request, if a value is returned, we can directly receive it and then
The simplest difference:
1. When a Get request is used, the parameter is displayed in the URL, but the Post method is not displayed.
2. A small amount of data is sent using the Get request, and a large amount of data is sent using the Post request.
3
Today I encountered a very painful problem. A JQuery asynchronous function $. ajax is called in a function, and a Jquery code is generated after the $. ajax function is added. Every time, code after $. ajax is executed first.
I searched the
To display data on other websites on your own page, you need to use Ajax to solve cross-origin problems,Solution: jQuery. support. cors = true; (the browser supports cross-origin access ),Instance:Copy codeThe Code is as follows:// The browser
Solution for submitting Chinese garbled characters in Ajax Post in jQuery (conversion), jqueryajax
Introduction: In the Ajax POST request of jQuery, the request is made. The Chinese characters in the request are displayed as garbled characters in
JQuery + ajax + jsonp cross-origin access, jqueryjsonp
Jsonp (JSON with Padding) is a "usage mode" in json format that allows webpages to obtain information from other domains.
For more information about Jsonp, see http://baike.baidu.com/view/4101174
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.