Using jQuery.getJSON method you can get or load JSON encoded data by an AJAX HTTP GET request. The method returns XMLHttpRequest object.
JSON stands for JavaScript Object Notation. So, this is a way of formatting the data to look at loading JSON data using an HTTP GET request (you can also use POST method).
$.getJSON( url, [data], [callback] )
$.getJSON(“ajax.js”, function(result){
$.each(result, function(i, field){
$(“p”).append(field + ” “);
});
});
Read Also:
Read jQuery reference for more.
Home security is not just about stopping burglars. It is about protecting your family, your…
Customer Loyalty is one of the most important things for brands today. Everyday companies come…
If you’re an international student in Australia and thinking about a course transfer or transferring…
The internet is a critical part of how we do things today. Anything and everything…
Yes, your kids need basketball shoes. Many parents think that shoes will not impact performance.…
If you use the right technology, you can significantly simplify your daily entrepreneurial tasks while…