Using the "callback" argument in the getJSON function usually won't work unless the recipient is setup to use "jsonp".
Basically, jQuery is replacing your callback parameter before it sends the request. So you see that you're requesting: http://api.nytimes.com/svc/movies/v2/reviews/search.json?api-key=c82338627fba39e9bcb953728fe445a2:15:57546791&callback= ? And the *actual* request jQuery is sending looks somthing like this: http://api.nytimes.com/svc/movies/v2/reviews/search.json?api-key=c82338627fba39e9bcb953728fe445a2:15:57546791& *callback=jsonp1229009729943*<http://api.nytimes.com/svc/movies/v2/reviews/search.json?api-key=c82338627fba39e9bcb953728fe445a2:15:57546791&callback=> jQuery takes the callback function you specified in the getJSON request, and duplicated it. So you now have: function jsonp1229009729943(data){ alert(data); } ---- The idea is that, on the server page, it is detecting the &callback parameter and wrapping the response, which the new york times is not. They're returning: {"status":"OK","copyright":"Copyright (c) 2008 The New York Times Company. All Rights Reserved.","num_results":0,"results":[]} but jQuery is expecting a response of: jsonp1229009729943({"status":"OK","copyright":"Copyright (c) 2008 The New York Times Company. All Rights Reserved.","num_results":0,"results":[]}); This is not really a jQuery limitation, but one of their API. The json can't be called or used unless it's wrapped in a callback function. I'd ask around their forums for help on that. On Thu, Dec 11, 2008 at 10:28 AM, jrutter <[EMAIL PROTECTED]> wrote: > > What am I doing wrong? Im able to submit the request and get a > response, but in Firebug it says invalid label and the alert doesnt > show up. > > here is my code: > > $("form").submit(function() { > > $.getJSON("http://api.nytimes.com/svc/movies/v2/reviews/ > search.json?api- > key=c82338627fba39e9bcb953728fe445a2:15:57546791&callback=<http://api.nytimes.com/svc/movies/v2/reviews/search.json?api-key=c82338627fba39e9bcb953728fe445a2:15:57546791&callback=>?", > {query : > $('#query').val()}, function(data){ > alert(data); > > > }); > > > return false; > > }); > -- Eric Garside <[EMAIL PROTECTED]> Lead PHP Developer