Does anyone know anything about JSONp? I'm trying to call a CFC directly with 
returnFormat set to JSON. I can get the result in the browser when I call the 
URL directly, but nothing happens in my jQuery code. It appears that the 
problem is that CF is outputting plain JSON and not JSONp.
 
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); 
        } 
); 
 
I've crossposted to the jQuery list as well...there are already a few replies 
over there:
http://groups.google.com/group/jquery-en/browse_thread/thread/21a68cea4bb11e84/0d44e36723274ad1#0d44e36723274ad1



andy matthews 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301171
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to