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