birdofprey wrote:
> Thanks, but I already have those redirects in place.  My question was
> about how to create a link within the mobile page that directs the
> user back to the full version of the site (by somehow ignoring the
> redirect script on that full version of the page).
>   
In the example...

index_m.htm is the mobile page the index.htm is the standard one..

meaning if you are coming from the mobile one via a link.(. nothing 
abnormal about that link)
then the main page does not redirect back to the mobile one.. otherwise 
it does.

The script on the full page pays attention to the referrer.
>
>
> On Nov 21, 7:50 pm, Lance Dyas <[EMAIL PROTECTED]> wrote:
>   
>> birdofprey wrote:
>>     
>>> Currently, the full version of my site detects an iPhone/iPod Touch
>>> device, and performs a redirect to the iPhone version of the site.  It
>>> does this by using Javascript.  Is there a way to link from the iPhone
>>> version of the page, back to the full page (and somehow disable the
>>> Javascript through the link so that it doesn't redirect straight back?)
>>>       
>> emulate something like the following.
>>
>> <script type="text/javascript">
>> if(document.referrer != "http://www.microimages.com/index_m.htm";){
>> if((navigator.userAgent.match(/iPhone/i)) || 
>> (navigator.userAgent.match(/iPod/i)))
>>     {location.replace("index_m.htm");}
>> if((navigator.appVersion.indexOf("Windows CE")>0))
>>     {location.replace("index_m.htm");}}
>>
>> </script>
>>     
>
> >
> .
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to