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.
Introduction When patients bring me their lab reports, the confusion is almost always the same.…
Are you excited about remodeling your house after a long time? Perhaps if you're planning…
The practice of yoga teaches us to be present, patient and mindful of our decisions.…
As we are once again allowed to go outside, nearly everyone is planning to go…
How do you find a cleaning company that will take excellent care of your business…
Finding a gift is always a big task. What is more harder when you are…