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.
