On Sep 6, 12:51 am, dansinker <[email protected]> wrote:
> I have a site that's directed toward mobile use. As a result, the
> basic structure consists of pages that render exclusively on mobile
> devices, and then corresponding pages for desktop browsers that
> explain that they need to come back on a mobile device.
>
> Currently, I'm using Javascript on the mobile page to detect browser
> width and then it redirects to the desktop page if it's above 480px
> wide.
>

This seems like an ultimately doomed strategy - the 480px limit you're
using is exactly met by the iPhone, the G1 and the Pre (in landscape),
and exceeded by the Kindle. Then there's the much-rumored "iPhone
tablet", which will completely exceed that if it ever appears.

It would seem more logical to either just show the pages to everybody,
or to detect user agents as others in the thread have suggested.

--Matt Jones

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to