[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Dan G. Switzer, II
Yansky, Hi, how do I go about specifying the user agent when I'm using ajax in jQuery? What are you trying to do exactly? The user agent is passed in during a XHR request--just like a normal HTTP call. Also, the navigator.userAgent is available to the core template (and wouldn't change via an

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Ⓙⓐⓚⓔ
beforeSend:function(req){req.setRequestHeader (User-Agent,pokemon)}, inside a $.ajax call sets my user-agent to pokemon. (tested in firefox2) On 4/22/07, Yansky [EMAIL PROTECTED] wrote: Hi, how do I go about specifying the user agent when I'm using ajax in jQuery? I've tried

[jQuery] Re: Specifying user agent with ajax

2007-04-22 Thread Ⓙⓐⓚⓔ
try this! $.ajaxSetup({beforeSend:function(req){req.setRequestHeader (User-Agent,pokemon)}}) On 4/22/07, Yansky [EMAIL PROTECTED] wrote: Hmm, I thought I responded earlier but it seems google groups didn't get my message. Apologies if I'm double posting. On Apr 23, 12:48 am, Dan G.