Here's the script that I'm currently trying to get to work:
Code: Select all
function test(data, status, jqXHR){
console.log('inside test()');
console.log('data:'+data);
console.log('status:'+status);
console.log('jqXHR:'+jqXHR);
}
//Grab contents from the Argos report...
$.ajax({
url: "https://mydomain/x?report=DP5BZWOYD5LJU4TMD4YPV2L7EQK53Y2VI7BVCUBXTP3OQGVYIBT7VHHQ6GWCBDCERA53J6G4YBIEM",
jsonpCallback: test,
contentType: 'application/json',
processData: false,
dataType:"jsonp",
jsonp: false,
success: function(data){
console.log(data);
},
error: function(a, b, c){
console.log(a);
console.log(b);
console.log(c);
}
});I don't understand how I'm getting a 200 response with nothing to show for it or the part about "undefined was not called" when the console.log() calls in test() print everything as expected, minus the actual data response I'm needing. It's all just kinda weird.inside test()
data:undefined
status:undefined
jqXHR:undefined
Object { readyState=4, status=200, statusText="success", more...}
parsererror
Error: undefined was not called
SyntaxError: missing ; before statement
Can someone here shine some light on this? For whatever it's worth, I posted about this over on Sitepoint, so if someone over there helps me get this working, I'll update this with whatever I find out over there.
Thanks in advance.