Tuesday, December 21, 2010

websites for mobiles or websites for PC

A lot of people who are trying to have a mobile version of their website have a basic question of should they have a separate version of their website for mobile or just have separate style sheets for rendering on mobiles.

I guess if we are asked to design something similar, we would say that, make the server return an xml which could be made to render in different formats using XSLT.

However people are exploring other similar approaches, which are more inline with our current way of developing websites for the PC.

Below are few links which talk about two such approaches, one uses Spring Mobile which has close integration with Spring MVC and other uses media queries:-

1.http://www.springsource.org/spring-mobile -- This one intercepts the incoming http request and identifies the originating device between PC and mobile and forwards the request to appropriate tile definition
2.http://www.webmonkey.com/2010/09/make-a-big-splash-on-small-screens-with-media-queries/
3.http://www.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/
-- This one helps you create style sheets which are adaptive based on the target device(during rendering, and adjusts accordingly for small screens and like...)