Hey Tom, you might find this article helpful:
http://smartmobtoolkit.wordpress.com/2009/01/25/not-device-detection-example-code/
I've developed an example page with this page in Python hosted on GAE
here:
http://notnotmobile.appspot.com
Cheers,
John
On Mar 26, 10:59 am, "Tom M." wrote:
> Very
Very helpful.
Are there any suggested "best practices" for determining how to
display a page? For example, in displaying a wine bottle I'd like to
have a mobile friendly page and a full page for online visitors. Do I
just switch off of the HTTP_USER_AGENT?
Guidance much appreciated!
On Mar 16,
import os
os.environ['REMOTE_ADDR'] is the IP
os.environ['HTTP_USER_AGENT'] is the user agent
I'm sure there's more, those are the two I needed when I created the
sessions utility.
Note: I've found that they don't always populate, more than likely a
per browser issue. I was confused to see REMO
Using JavaScript:
if (/msie/.test(navigator.userAgent.toLowerCase())
&& !/opera/.test(navigator.userAgent.toLowerCase())) {
[...]
On Mar 15, 7:56 am, jago wrote:
> Hi,
>
> Can I write some Python code that creates an HTML which prints if the
> client is running Firefox or IE ?
--~--~-~-
Try a Google search for browser detection or sniffing. Basically you need to
check the request headers, but this is very difficult to get right 100% of
the time for all browsers.
-Original Message-
From: google-appengine@googlegroups.com
[mailto:google-appeng...@googlegroups.com] On Be