Ajax Helpers

Functions for loading and sending data between client and server without a browser page refresh.


Making CORS Ajax GET requests

Asynchronous loading of data from a server in a different domain with modern browsers.

jQuery: $.ajax()

JSONP Ajax requests

JSONP allows asynchronous loading of data, even from servers in a different domain.

Load a script file asynchronously

How to load a JavaScript file asynchronously from the server and automatically execute it.

jQuery: $.getScript()

Send Ajax GET and POST requests

Load data asynchronously from the server using GET or POST HTTP requests. Set data type (xml, json, script, text, html) and decode returned data.

jQuery: $.ajax(), $.get(), $.post(), $.getJSON()

Serialize form data into an array

Encode a set of form elements as an array of names and values.

jQuery: $.serializeArray()

Serialize form data into a query string

Encode a set of form elements as a string for submission.

jQuery: $.serialize()