Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

jQuery - Ajax

Back


Ajax


HTTP Request: GET vs. POST


Ajax Method

Ajax Description
$.ajax(url) Perform an asynchronous HTTP (Ajax) request
$.get(url) Load data from the server using a HTTP GET request.
$.getJSON(url) Load JSON-encoded data from the server using a GET HTTP request.
$.post(url) Send data to the server using a HTTP POST request.
.load(url) Load data into element

Helping Method

Method Description
.serialize() Creates a text string in standard URL-encoded notation
.serializeArray() Creates a JavaScript array of objects

TOP