Searchin for 'iPhone' also works :D

Everton Fraga
Web & iPhone Developer
http://evertonfraga.com
+55 21 81675310

On Tue, Jul 22, 2008 at 9:02 AM, Jon Brisbin <[EMAIL PROTECTED]> wrote:

>
> If you log the contents of the user agent string while hitting your
> site with an iPhone, you'll see the exact things to look for. I have
> code that does regexs for "Safari" AND "Mobile". If you notice, the
> version of Webkit and everything are in there, so you can get very
> specific.
>
> How you switch out content depends, of course, on what you're using on
> the server. If it were me, I'd probably implement a controller of
> sorts that takes requests for resources and figures out which set of
> resources to give based on user agent or url parameter (so you can
> tell it exactly what you want via Ajax).
>
> Jon Brisibn
> http://jbrisbin.com
>
> On Jul 21, 2008, at 4:00 PM, [EMAIL PROTECTED] wrote:
>
> >
> > My company web site has some flash elements in it. We can't maintain
> > two web sites, so we're trying to find some code that would detect
> > that the visitor is using an iphone and load a ,jpg file instead of
> > the Flash file. Has anyone seen this done?
> >
> > Any help is appreciated!
> > JW
> >
> > >
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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