You need to sign in to do that
Don't have an account?
DannyK89
Visualforce page and Mobile Device
Hi everyone,
I would like to know if there is a way to check if a user is using a mobile device or computer when accessing a visualforce page.
I would like mobile users to see certain fields and comptuer users to see certain fields.
I used something like this:
I put that code in my controller and it seemed to work. This might not be the best way but it worked for me.
All Answers
I don't think this is natively possible to do just with VisualForce alone, but it's a perfect use-case for CSS3 Media Queries
http://www.alistapart.com/articles/responsive-web-design/
http://mediaqueri.es/
http://mobile.smashingmagazine.com/2010/07/19/how-to-use-css3-media-queries-to-create-a-mobile-version-of-your-website/
I used something like this:
I put that code in my controller and it seemed to work. This might not be the best way but it worked for me.