All technological notes.
AJAX = Asynchronous JavaScript and XML.
Two commonly used methods for a request-response between a client and server are: GET and POST.
GET: Requests data from a specified resourcePOST: Submits data to be processed to a specified resource| 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 |
| Method | Description |
|---|---|
.serialize() |
Creates a text string in standard URL-encoded notation |
.serializeArray() |
Creates a JavaScript array of objects |