Wednesday, November 14, 2012

jQuery getJSON Method

jQuery provides various methods like ajax, load, get, post, getJSON, getJSON etc  to make an Ajax call. In this post we shall see on how to use the getJSON () method to make an Ajax call.

getJSON() method is used to process JSON data response from the server.  

The Syntax for the getJSON() method is as follows.

$. getJSON("<server URL>",<POST parameters>, successHandlerFunction());

The successHandlerFunction contains the data returned in JSON format, we can parse the data in this handler and display the same in the browser.

Search Flipkart Products:

No comments: