HI WELCOME TO SIRIS

jQuery Ajax Methods with Examples

jQuery Ajax Methods allow you to make background server calls for fetching addition data, Updating some portion in web page without refreshing the whole page. Following are jQuery Ajax methods
jQuery MethodDescription
$.ajax()Perform an asynchronous AJAX request
$.ajaxSetup()Used to sets default values for AJAX requests
$.get()Used to loads data from the server using a HTTP GET request
$.getJSON()Used to loads JSON data from the server using a HTTP GET request
$.getScript()Used to loads JavaScript data from the server using a HTTP GET request
$.param()Used to creates a serialized representation of an array or an object
$.post()Used to loads data from the server using a HTTP POST request
load()This method load data from the server and place into the matched element
serialize()Encode a set of form elements as a string for submission
serializeArray()Encode a set of form elements as an array of names and values pair

Ajax Event Methods

jQuery MethodDescription
ajaxComplete()This event function call when AJAX request completes
ajaxError()This event function call when AJAX request completes with an error
ajaxSend()This event function call before the AJAX request sent
ajaxStart()This event function call first before the AJAX request begin to send
ajaxStop()This event function call at the end when all AJAX requests completed
ajaxSuccess()This event function call when the AJAX request completes successfully