Etienne,

I'm using getJSON because I need to do cross-domain data fetching.  I
thought getJSON is the best way for doing that from reading the docs.

No error messages show up in FF.  In HTTP watch, I see the JSON content
coming throw as

{
                "title": "Recent Uploads tagged cat",
                "link": "http://www.flickr.com/photos/tags/cat/";,
                "description": "",
                "modified": "2009-06-25T17:40:33Z",
                "generator": "http://www.flickr.com/";,
.
.
.
}

but the callback never fires.

Any other ideas?


Etienne Robillard-3 wrote:
> 
> 
> 
> Hi dtrann,
> 
> I never tried the $.getJSON method before but generally have better
> results using the plain $.ajax method. If you switch to that
> alternative, you should also pay attention to specifying the "json"
> dataType param. Oh and what is the error message reported ? ;-)
> 
> Hope this helps,
> Etienne
> 
> dtrannn wrote:
>> 
>> Hi, I'm a newbie trying to understand getJSON callbacks.  I have 2
>> getJSON
>> calls below.  One for flicker which works fine - the alert goes off - but
>> when I tried my js file, nothing happens.  Both files are returning the
>> exact same JSON data.
>> 
>> I know I'm doing something wrong.  Can someone help me out?
>> 
>> <html>
>> <head>
>>   <script
>> src="http://include.classistatic.com/include/c3js/classifieds/rel1/jquery-1.2.6.js";></script>
>>   
>>   <script>
>>   $(document).ready(function(){//alert("1");
>>    
>> $.getJSON("http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=?";,
>>  
>> //$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?tags=cat&tagmode=any&format=json&jsoncallback=?";,
>>  
>>         function(data){alert(data);});
>>   </script>
>> </head>
>> <body>
>> </body>
>> </html>
>> 
> 
> 
> -- 
> Etienne Robillard <robillard.etie...@gmail.com>
> Green Tea Hackers Club <http://gthc.org/>
> Blog: <http://gthc.org/blog/>
> PGP Fingerprint: AED6 B33B B41D 5F4F A92A  2B71 874C FB27 F3A9 BDCC
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getJSON-flicker-works-but-not-mine----URGENT-HELP-tp24212290s27240p24212806.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to