Since I can't debug pretty much on the server-side, I'd suspect that somehow the data coming from flickr is more clean than from your host.
I also get the following error, indicating most likely a problem parsing the json data: Error: invalid label Source File: http://include.classistatic.com/include/c3js/classifieds/rel1/auto2/a/p10.js?jsoncallback=jsonp1245978837391&_=1245978837487 Line: 2, Column: 2 Source Code: "title": "Recent Uploads tagged cat", How (which api) are you using to generate the json data ? I recommend "demjson" if you're using Python. Hope this helps, Etienne dtrannn wrote: > > 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 >> >> > -- 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