It can be roughly divided into the following five steps:
1) Create an XMLHTTPRequest object. Note that the creation methods for different browsers are different:
For Firefox, javasillar, opera, Safari, IE7, and IE8, the creation method is as
A simple three-level linkage was made with jquery Ajax the other day, and it has been used well. during the demonstration today, there was a problem in IE. the reason is the cache mechanism of IE. as a result, Ajax will not request the background.
Prototype is a JS class library that simplifies Ajax development.Official Address: http://prototype.conio.net/Introduction: https://compdoc2cn.dev.java.net/prototype/html/prototype.js.cn.html
DHTML history is a JS class library that uses Hash
Debugging Ajax in IE
For ie9 and F12 tool, you can debug Ajax...
But I'm ie8 ..
Firebug, I heard that this debugging is good. After I download and install it, the root page cannot run JS under ff. It seems that JS compatibility is poor and I have
Ajax automatically completes the question in the drop-down prompt box
Http://bbs.blueidea.com/thread-2691904-1-1.htmlHttp://www.cnblogs.com/jinchun/archive/2007/03/28/691145.html
Enter the following content: for example,Can be used only for the drop-
This seriously tested the XMLHTTP concurrent behavior of the three browsers (ie/Firefox/opera), and found that if the user sends a lot of XMLHTTP asynchronous requests at the same time, in this case, the browser does not send requests completely,
AJAX can obtain server data without refreshing a new page. However, due to the security restrictions of various browsers, Ajax is likely not to allow cross-origin access (this type of restriction is necessary. without any restriction, AJAX can use
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
For many web developers, you only need to generate simple requests and receive simple responses.Ajax developers must fully understand the HTTP status code, readiness status, and XMLHttpRequest object. In this article, Brett McLaughlin will introduce
In a recent article in this series, you have learned how to convert JavaScript objects into JSON format. This format is easy to send (and receive) data that corresponds to an object or even an object array. In the last article in this series, you
When sending and receiving information in an asynchronous application, you can select plain text and XML as the data format. This phase of understanding Ajax discusses another useful data format, JavaScript Object Notation (JSON), and how to use it
/** // * The first method for creating XMLHttpRequestTry {Searchreq = new activexobject ('msxml2. xmlhttp ');}Catch (e ){Try {Searchreq = new activexobject ('Microsoft. xmlhttp ');}Catch (e ){Try {Searchreq = new XMLHttpRequest ();}Catch (E){}}}*///
I recently learned extjs and shared it with you when I learned some basic Ajax knowledge. It is suitable for beginners!
I. Ajax concepts
Ajax is short for asynchronousjavascript and XML. It is not a new technology, but a comprehensive application of
Here are some points. We use Asp.net to develop database applications. You often need to create entities suchPublic class userentity
...{
Public String Username
...{
Get ...{
Return "";}
}
Public String useremail
...{
Get ...{
Return
Record a piece of basic Ajax writing and add comments to the code. Many people think it is mysterious, but they can understand it after reading it.
Here, the. NET aspx is used as the server for return processing.
JS Code, call Method
How to call
I have read many articles and a lot of code. I can't find the most error. Now let's go to the code. Then let's talk about the points of attention.
my JSP 'index. JSP 'starting page Ext. onready (function () { var lform =
VaR xmlhttpreq = false;Function createxmlhttprequest () {If (window. XMLHttpRequest) {// determine if it is Mozilla xmlhttpreq = new XMLHttpRequest ();} else if (window. activexobject) {try {xmlhttpreq = new activexobject ("msxml2.xmlhttp");} catch (
Chinese garbled characters may occur when values are passed through URLs in JS. The solution is as follows:
Encodeuri is used twice when the value is passed, and urldecoder. Decode is used when receiving the value in the background.
Reference
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.