On 21 déc. 2010, at 01:01, Marijan Vukcevich <[email protected]> wrote:
> I thought the thread is about redirecting page,at least that what I thought > it > was. Agree. Thread subject is "Detecting Mobile Safari". That's what this script do. R. > Personally, not interested in flash thread, no way. Without flash, web wouldn't be what it is today. Imagine a world without cats videos on youTube ?!) > > The code is just an example, not working/production solution. > For browser sniffing, according to many knowledgable people, should not be > done by sniffing user agent. > > It's not a recommended way. > > my two cents > Marijan > +1 > > > ----- Original Message ---- > From: RobG <[email protected]> > To: iPhoneWebDev <[email protected]> > Sent: Mon, December 20, 2010 3:37:14 PM > Subject: Re: Detecting Mobile Safari > > > > On Dec 20, 2:08 pm, Marijan Vukcevich <[email protected]> wrote: >> inside regular page (redirect to your iphone page ): >> >> <!DOCTYPEHTMLPUBLIC"-//W3C//DTD HTML >> 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"> >> <html> >> <head> >> <script> >> if((navigator.userAgent.indexOf('iPhone') != -1) || >> (navigator.userAgent.indexOf('iPod') != -1 )) { >> window.location.href="http://eastsideinteractive.com/iphone/";} > > No, absolutely not. What about any other browser that isn't iPhone or > iPod and either doesn't have Flash or it's turned off? Or says > something like "...iPhone compatible..." in its UA string? > > You can't possibly know that the above will only detect iPhone, nor > that iPhone will *never* support Flash, or that someone may have a > jail-broken iPhone with Flash (or a Flash-compatible plugin) > installed, or whatever. > > > -- > Rob > > -- > 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. > > -- > 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. > -- 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.
