Yes, it is on a different domain (which is why jsonp is being used). What strategy would you suggest for me to be able to specify headers? It's a must-have for my application.
On Wed, Oct 21, 2009 at 4:43 PM, Mike Alsup <mal...@gmail.com> wrote: > > > The alert below never occurs (and a breakpoint is never hit if I put > > it there), but I can see that the ajax request is being sent. > > > > j$.ajax({ > > 'url': serviceUrl, > > dataType: "jsonp", > > data: params, > > beforeSend: function(req) { > > alert("inside!"); > > } > > }); > > > If serviceUrl is on a different domain then your jsonp request will > not use ajax, and so beforeSend will not be called. x-domain jsonp > requests inject script tags into the document head.