- Tags: AJAX
- Categories: jQuery Reference, jQuery Resources, Reference
Quick Reference
This is a quick reference list of jQuery AJAX methods that are used to exchange data with a server and update parts of the document without reloading.
jQuery – $.ajax() Method
The .ajax() method is used to perform an AJAX (asynchronous HTTP) request, and is mostly used for requests where the other methods cannot be used.
jQuery – ajaxComplete() Method
The ajaxComplete() method specifies a function to be run when an AJAX request completes.
jQuery – ajaxError() Method
The ajaxError() method specifies a function to be run when an AJAX request fails, and should only be attached to the document.
jQuery – $.ajaxSetup() Method
The .ajaxSetup() method sets default values for future AJAX requests.
jQuery – ajaxSend() Method
The ajaxSend() method specifies a function to run when an AJAX requests is about to be sent., and should only be attached to the document.
jQuery – ajaxStart() Method
The ajaxStart() method specifies a function to be run when an AJAX request starts.
jQuery – ajaxStop() Method
The ajaxStop() method specifies a function to run when ALL AJAX requests have completed.
jQuery – ajaxSuccess() Method
The ajaxSuccess() method specifies a function to be run when an AJAX request is successfully completed, and should only be attached to the document.
jQuery – $.get() Method
The .get() method loads data from the server using an HTTP GET request.
jQuery – $.getJSON() Method
The .getJSON() method is used to get JSON data using an AJAX HTTP GET request.
jQuery – $.getScript() Method
The .getScript() method is used to get and execute a JavaScript using an AJAX HTTP GET request.
jQuery – load() Method
The load() method loads data from a server and puts the returned data into the selected element.
jQuery – $.param() Method
The .param() method creates a serialized representation of an array or an object.
jQuery – $.post() Method
The .post() method loads data from the server using an HTTP POST request.
jQuery – serialize() Method
The serialize() method creates a URL-encoded text string by serializing form values.
jQuery – serializeArray() Method
The serializeArray() method creates an array of objects (name and value) by serializing form values.
We’d like to acknowledge that we learned a great deal of our coding from W3Schools and TutorialsPoint, borrowing heavily from their teaching process and excellent code examples. We highly recommend both sites to deepen your experience, and further your coding journey. We’re just hitting the basics here at 1SMARTchicken.
Why 1SMARTchicken?
See More →
Thanks for your support!
jQuery Books
All are affiliate links. Thank you for your support!
jQUERY NOTES:
- To use jQuery on your site, it must first be downloaded from the official jQuery site and linked to in your document
head
, or linked to via a CDN in your documenthead
- It is generally good practice to place your jQuery code/function inside the document load function so that the action takes place ONLY after the document has finished loading
- When using jQuery, single or double quotation marks are acceptable and work identically to one another; choose whichever you prefer, and stay consistent
Feedback
If you see an error on the page or the code itself is incorrect or incomplete, or just plain wrong, please let us know. We’re always learning. NOTE: we do not sell your information and will not send you spam emails.