Overriding A Jquery Core Function In Javascript - Getjson
I am trying to override the getJSON function in jQuery to provide additional params and then call the original getJSON. I am fairly unfamiliar with JavaScript and have scraped this
Solution 1:
You need to call $.getJSON
, not $(foo).getJSON
;
$.getJSON('ajax/test.json', function(data) {
var items = [];
alert('done');
});
Post a Comment for "Overriding A Jquery Core Function In Javascript - Getjson"