JQuery----Study Notes (iv)

Source: Internet
Author: User
Tags http post

AJAX = Asynchronous JavaScript and XML (asynchronous JavaScript and XML)

The JQuery load () method is a simple but powerful Ajax method

The load () method loads the data from the server and puts the returned data into the selected element

Syntax: $ (selector). Load (url,data,callback);

The required URL parameter specifies the URL that you want to load

The optional data parameter specifies the collection of query string key/value pairs that are sent with the request.

The optional callback parameter is the function name that is executed after the load () method completes

The optional callback parameter specifies the callback function to be allowed after the load () method completes.

The callback function can set different parameters:

responsetxt-contains the result content when the call succeeds

Statustxt-contains the state of the call

xhr-contains Xmlhttpresquest objects

HTTP request: GET vs. POST

The $.get () method requests data from the server over an HTTP GET request

Syntax: $.get (Url,callback)

The $.post () method requests data from the server via an HTTP POST request

Syntax: $.post (Url,callback)

Some other JavaScript frameworks: Mootools,backbone,sammy,cappuccino,knockout,javascript mvc,google Web toolkit,google Closure, Ember,batman

, Ext JS.

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.