It has been 18 months since Jesse James Garret created the term Ajax, and Ajax has almost completely changed the way web development is developed. In the past year and a half, many things have taken place, including the popularity of Web 2.0, the
Occasionally, Ajax developers will notice X in Ajax and realize that it represents XML. XML is one of the most commonly used data formats in programming, which can bring tangible benefits to server responses in asynchronous applications. In this
There are two forms of submission in Ajax: synchronous and asynchronous.XMLHTTP. Open ("get", URL, true );
XMLHTTP. Open ("get", URL, false );
Synchronization: after submission, wait for the server to respond. After receiving the data returned by
Click Submit. You do not need to refresh this page, submit the content to the database, and display the submitted content on this page.
Jquery method:
Messageaction. Class. php
Class messageaction extends action {Function Index (){$ This-> display ()
The load () method loads data from the server through Ajax requests and places the returned data in the specified element..The URL specifies the URL to which the request is sent.Data is optional. Specifies the data sent to the server together with
Document directory
Example:
The main point of AJAX is the XMLHTTPRequest object.
Different browsers use different methods to create XMLHttpRequest objects.
The IE browser uses activexobject, while other browsers use JavaScript built-in objects
Jquery provides a series of global methods to encapsulate the XMLHTTPRequest object. During Ajax development, you no longer have to worry about the problem of browser clients.
I. $. Ajax (options)It is the most fundamental jquery Ajax method. It
Bolg hasn't been here for a long time. If you have time, let's put a recently written webwork interceptor for your reference. If you have a bug or a better implementation method, please email me.
The following is the implementation code of
1. Create an instance of the XMLHTTPRequest objectIf the browser supports ActiveX objects, you can use ActiveX to create XMLHttpRequest objects. Otherwise, it is necessary to use the local JavaScript Object technology to create.VaR XMLHTTP;Function
How to Use Ajax technology to develop Web applications (3)
Source: blueidea [09:56:11] Author: sheneyan translated responsibility Editor: xietaoming
By Jonathan fenocchiTime: 2005.10.25Translator: sheneyanHttp://www.webreference.com/programming/
my JSP 'index. JSP 'starting page Username: password:
JSON can be used to directly read the attribute values in the action instead of the out. Print (...) in the servlet (...)
Package COM. ajax. action; import COM. opensymphony.
As a J2EE developer, we often seem to be concerned with backend mechanisms )". We often forget that the main success of J2EE lies in Web applications. Many reasons make people prefer to use web to develop applications, however, it is mainly because
Jquery has the following Ajax methods:1. $. Post (URL, Params, callback );2. $. getjson (URL, Params, callback );3. $. Ajax ();4. $. Load (URL, Params, callback );
First: Post is used for submission. Chinese parameters do not need to be transcoded.
Recently, when I was working on a project, I used ajax to request server data! At the beginning, I can test that everything works normally (I'm not a professional tester! So we still haven't figured out some problems )! Later, the data in the ajax
Just found a new device Ajaj, Asynchronous JavaScript And JOSN.
This technology can achieve non-refreshing interaction like ajax, but it can be cross-origin.
The principle is to dynamically create a script tag, point the src attribute to an exotic
From: http://www.cnblogs.com/hjclove/articles/1318737.html
I. OverviewNow Ajax technology is developing on the Internet in full swing. In the face of the Web project ASP. NET1.1 we developed earlier, the interaction like the drop-down box also needs
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service