Basic Ajax Tutorials

Source: Internet
Author: User

What book is this?
This is a technical book, mainly from the history, XMLHttpRequest objects, how to interact with the server, build a complete AJAX development toolkit, use the Jsunit test JavaScript code, in short, let us from this aspect to understand Ajax, And very good use of Ajax

Chapter One: Introduction to Ajax
The web app is done with the request.
Ajax requests are not recorded in the browser's history, and the back button does not return to the desired page
JsUnit and Selenium test tools

Chapter II: XMLHttpRequest Objects
Before sending requests and processing responses using the XMLHttpRequest object, you must first create a XMLHttpRequest object with JavaScript
If the request returns the same result as multiple requests, you can use the Get
You should use the Post method when changing the state on the server, post needs to set the Content-type header of the HttpRequest object
Xmlhttp.setrequestheader (' Content-type ', "application/x-www-form-urlencoded");

If you talk about browser technology and don't take security into account, the discussion is incomplete.
XMLHttpRequest is subject to the browser's sandbox, the resources requested by the XMLHttpRequest object must be within the same domain as the calling script, which makes it impossible to request resources outside the domain of the script
Dom refers to the content and structure of a document

Chapter III: Communicating with servers, sending requests and processing responses
"? timestamp=" + New Date (). GetTime () Ensure the uniqueness of the URL and avoid browser caching results
Ajax transmits data, text, Xml,json (most commonly used)

Fourth: Implementing Basic Ajax Technology
88-page Verification
Progress bar 111

Fifth: Building a complete AJAX Development Toolkit 140 pages
Document that uses JSDOC to build JavaScript code
To use Jsdoc,windows users must install the Perl environment
Using JSLint to complete JavaScript syntax checking
Memtronic Compression Tool

Writing tests can improve design, testing helps you think from an interface perspective, and test frameworks are also code customers

Seventh: Analysis of JavaScript Debugging tools and Techniques
Debug Ajax requests with Greasemokey, Greasemokey is a Firefox extension

Summary: The book is too old, but it still touches something.

Assertion: Assertions are often present in the debugger and are used to capture the assumptions of the Code,

Basic Ajax Tutorials

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.