Your work is going to fill a large part of your life, and the only way to be truly satisfied is to do what you believe is great work. And the only way to do great work is to love what you do.
-- Steve Jobs

Sunday, September 4, 2011

Mobile Views with Grails | Graham's Blog

Mobile Views with Grails | Graham's Blog
With mobile browsers exploding in popularity, it is now vital for almost any website to accommodate them. If your website isn’t as usable on an iPhone as it is on a desktop, then you may be turning away a large percentage of potential customers.
Tools such as jQuery Mobile and iWebKit have made it easy enough to produce a site that looks great on any of the popular handsets, such as the iPhone, iPod Touch, Blackberry or Android based models. But most sites need to serve both mobile and regular desktop users. So the questions are:
  • How to detect mobile users?
  • How to ensure that mobile and non-mobile users each see content that is formatted clearly for their screen size?
  • How to do all this without creating a separate site for each type of user?
  • How to do all do all this using Grails’ DRY concepts?
If you’re developing your site with Grails, you’re in luck. Using the method I will describe below, you can easily create one site that looks great on both mobile and non-mobile browsers.

No comments:

Post a Comment