View Single Post
      10-22-2008, 02:58 PM   #57
HighVoltage
.
HighVoltage's Avatar
United_States
32
Rep
867
Posts

Drives: 07 E90 335i
Join Date: Aug 2008
Location: .

iTrader: (0)

Mark,
to address all those who are getting worked up about it you might want to take a look at cnn.com and m.cnn.com. If you navigate to m.cnn.com on your iPhone it will give you a link at the bottom to goto the regular site. I am not sure how you are doing it but I think they are just simply using a bit of javascript.

So something along these lines might work:

if (!override)
{
if(navigator.userAgent.match(/iPhone/i) ){
...do iphone mobile version..
else{
..do regular site..
}
}
else
{
..do regular site..
}

On hitting the link you can just set "no_override" or whatever. Im sure you know what I mean.
Appreciate 0