[web2py] Re: request.user_agent() dumping [closed]

2012-02-27 Thread weheh
.

[web2py] Re: request.user_agent() dumping

2012-02-27 Thread Ross Peoples
Glad you like the feature! I don't think dimensions are available in the user-agent string that the browser passes to the server. So your only option is to use jQuery or CSS media queries. On Sunday, February 26, 2012 11:13:42 PM UTC-5, weheh wrote: > > And, I might add, this is simply awesome.

[web2py] Re: request.user_agent() dumping

2012-02-26 Thread weheh
And, I might add, this is simply awesome. It would also be very cool if it could give me the dimensions of the browser window. I know I can get it via jQuery, but it would save a step. On Feb 22, 10:15 pm, Massimo Di Pierro wrote: > I think this was fixed in a later version. > > On Feb 21, 9:52 p

[web2py] Re: request.user_agent() dumping [closed]

2012-02-26 Thread weheh
Indeed. Fixed in latest stable web2py 1.99.4. On Feb 22, 10:15 pm, Massimo Di Pierro wrote: > I think this was fixed in a later version. > > On Feb 21, 9:52 pm, weheh wrote: > > > > > > > > > I'm trying to detect the browser being used to access my web2py app. > > The literature seems to recomme

[web2py] Re: request.user_agent() dumping

2012-02-22 Thread Massimo Di Pierro
I think this was fixed in a later version. On Feb 21, 9:52 pm, weheh wrote: > I'm trying to detect the browser being used to access my web2py app. > The literature seems to recommend reading request.env.http_user_agent. > But the results are a little confusing, so I'm trying > request.user_agent(