[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-22 Thread Todd Wells
It's our own existing auth service (and I'm not on the implementation team). Most other usages of this service are not directly from the browser, but from the back-end via java. I thought about proxying it via my service, but my service isn't SSL, so proxying still doesn't give me security anyway.

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-22 Thread Dave Methvin
It's our own existing auth service (and I'm not on the implementation team). Most other usages of this service are not directly from the browser, but from the back-end via java. I thought about proxying it via my service, but my service isn't SSL, so proxying still doesn't give me security

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-21 Thread Mike Alsup
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,            

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-21 Thread Todd Wells
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

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-21 Thread Mike Alsup
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. You can't. Are you saying you're trying to access a jsonp service that requires specific request headers on the GET

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-21 Thread Todd Wells
That's correct, the problem is that it's an authentication service and while I *could* put the credentials on the URL, it would be sending them in the clear across the internet, which is not acceptable. On Wed, Oct 21, 2009 at 4:59 PM, Mike Alsup mal...@gmail.com wrote: Yes, it is on a

[jQuery] Re: jQuery.ajax() not calling beforeSend?

2009-10-21 Thread Dave Methvin
That's correct, the problem is that it's an authentication service and while I *could* put the credentials on the URL, it would be sending them in the clear across the internet, which is not acceptable. That's a tough one. A typical jsonp implementation uses either iframes or (in jQuery's