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
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
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.
3 matches
Mail list logo