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.
Solar panels work by converting the solar energy received from the sun into usable electric…
In today’s digital-first economy, your website is often the first impression your business makes. Whether…
Dubai’s digital landscape is highly competitive, making it essential for businesses to work with the…
Are you planning to hire plumbers for repairing water lines, checking the level of your…
Despite being one of the most expensive real estate markets in the world, Australians still…
Below are the tools that actually help instead of confusing you with long explanations or…