locked
Mobile Site like StackOverflow RRS feed

  • Question

  • User-1027063549 posted

    I want to understand how stackoverflow is displaying mobile friendly page when i am trying to visit website from my mobile. It also displays fullsite option to switch back to same question on web version. I would appreciate if someone can answer my following questions:

    1) How to detect mobile device and display mobile friendly page.

    2) Stackoverflow is using CSS approach or mobile framework

    3) Do i need to develop new mobile site or i can do it inside existing website.

    4) How to develop switch back of mobile version and web version.

    Thank you.

    Thursday, June 21, 2012 12:10 PM

Answers

  • User1943143334 posted

    Hi,

    1) How to detect mobile device and display mobile friendly page.

    You can use the Mobile detection scripts! You can refer the link - http://detectmobilebrowsers.com/

    2) Stackoverflow is using CSS approach or mobile framework

    It may be using the jQuery Mobile/Phone Gap stuff to render the content to Mobiles, which inturn uses CSS for styling needs!

    3) Do i need to develop new mobile site or i can do it inside existing website.

    It's up to you! You can render the same website with just adding some Mobile META tags, which makes your website mobile compatible!

    <meta name="viewport" content="width=device-width" />

    http://developer.apple.com/library/safari/#documentation/appleapplications/reference/SafariHTMLRef/Articles/MetaTags.html

    OR, you can have separate website created for Mobile websites using jQuery Mobile / PhoneGap / kendoUI etc.,

    4) How to develop switch back of mobile version and web version.

    Suppose if you have both the version, then you can provide a link pointing to the full website in the Mobile version and vice versa!

    Hope it helps u...

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 22, 2012 5:28 AM