[jQuery] $getJSON problem...demo works, but not my code?
I've got an AIR app I'm working on, one in which I'll be needing to
make a few calls from the user's desktop to our login server. I found
on the jQuery site where it says that cross domain calls work fine if
you return JSON data using the JSONP format. The demo works just fine,
but when I try to replicate it using my code, I get no data, or an
error. Can anyone tell me what I'm missing? Here's the two samples,
the one copied straight from the docs, the other copied and pasted
from my code:
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?
tags=cat&tagmode=any&format=json&jsoncallback=?",
function(data){
alert(data);
$.each(data.items, function(i,item){
$("<img/>").attr("src", item.media.m).appendTo("#content");
if ( i == 3 ) return false;
}
);
});
$.getJSON("http://www.commadelimited.com/uploads/bullhorn/bullhorn.cfc?
method=retriveData&jsoncallback=?",
function(data){
alert(1);
}
);
The docs go about 85% of the way in explaining what I'm supposed to
do, so I guess I need what's in the other 15%.
Anyone have any ideas?