I can't seem to find any info to help me with this OR I'm doing it all wrong which is most likely the case. I have some sample JSON data at this URL:
http://dev.plaidduckdesign.com/zen/album.php?aid=1037521524
NOTE: That page takes about 20 seconds to load....
I ran it through a json validator and it came back clean. I'm trying to request the data from that page just an ajax request with the jonsp dataType because it's not on the same domain. But nothing I'm doing is working. I just keep getting an unknown error. Here's my ajax request:
$.ajax({
url: url,
dataType: "jsonp",
data: request,
success: function(data, textStatus, jqXHR) {
var obj = jQuery.parseJSON(rootData);
alert(obj[0].url);
},
error: function(jqXHR, textStatus, errorThrown) {
//alert("error ")
} // end error:
}); // end ajax
I have yet to actually get the success method to fire, just errors.
Any information or pointing in the right direction is much appreciated.
?callback=?to your url?