jQuery Methods for Sending an AJAX Request

As you can see from studying the following table, jQuery supplies several methods for sending an AJAX request to the server and parsing the results.























MethodDescription
get(url, parameters)Send an HTTP GET request to the given
URL. Parameters is JSON object
encapsulating form data (name/value pairs). Result is returned as
HTML, XML, or plain text data.
post(url, parameters)Just like get, but uses the class="code">post method, which hides the parameters.
load(url, parameters)Much like get(), but returns a jQuery
object. Calling jQuery objects contents are replaced by the
returned data (usually HTML or XHTML).
getJSONLike get, but returns a JSON object,
which can be parsed for further processing.








dummies

Source:http://www.dummies.com/how-to/content/jquery-methods-for-sending-an-ajax-request.html

No comments:

Post a Comment