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.
The 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 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.
No comments:
Post a Comment