Not sure if I read your question correctly. But if I have an iPhone
webapp that I only want to iPhone users to see, I use a piece of
javascript in the iPhone webapp pages that sends everyone else to
another page of my choosing.
For example. I have an itunes competition that i run for iPhone and
iPod Touch users. On the page I use the following script to send all
other browers to a different version of the site.
<script language=javascript>
<!--
if((navigator.userAgent.match(/iPhone/i)) ||
(navigator.userAgent.match(/iPod/i)))
{
location.replace("http://iphone.playtext.co.uk/win-itunes/");
}
-->
</script>
Stick the code between <head> and </head>
Hope that helps.
On May 30, 5:26 am, anmldr <[EMAIL PROTECTED]> wrote:
> There are web sites that are only viewable on the iPhone such as
> Lottery Post. Others can be viewed in Firefox if the User Agent
> Switcher is used and the iPhone is the user agent. What are these web
> sites using that only allow iPhone access?
>
> If you just point me in the right direction, I can try to learn how
> myself unless it is something simple that you can post here.
>
> Thanks,
> Linda
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---