I am very new to programming with jQuery and I am trying to retrieve a JSON object from a json file I have locally and display the data in a table within the webpage. I have looked at several different forums for this but all of my code so far has got errors within firebug.
the closest I got was this little snippet of code to returning anything:
var vendor;
$.ajax({
async: true,
type: "POST",
url: "dataRetrieval.json",
data: "vendorId="+vendor,
success: function(json){
alert( "Data retrieved: " + json );
}
});
And when I ran that I got the following to display in the alert: Data retrieved: [object XMLDocument]
I am obviously missing something here, if someone would be able to help me out here it would be GREATLY appreciated.