Skip to end of metadata
Go to start of metadata

This function performs identically to ajax(), except the function will attempt to evaluate the response as a JavaScript object. If successful, the resulting object is passed to the handler function (or returned from the function for synchronous requests). This function is designed to be used in requests that return JSON data for client-side processing.

Example:

In this example, the ajaxJSON() function is used to perform an asynchronous POST request. The data returned from the request is automatically evaluated into a JavaScript object:

Labels
  • No labels