Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Mar 2006
    Location
    Nigeria
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Designing for mobility

    Im doing a couple of designs on XHTMl for mobile compatibility. However, due to heaviness, im thinking of finding a way to redirect a viewer who is using a mobile device to a lighter version of the site. Any ideas?

  • #2
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    In (X)HTML you can apply a stylesheet to a device:
    Code:
    <link rel="stylesheet" href="styles.css" type="text/css" media="handheld" />
    http://www.w3.org/TR/REC-CSS2/media.html#media-types

  • #3
    Regular Coder
    Join Date
    Mar 2006
    Location
    Nigeria
    Posts
    192
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Yeah, I know about that. And even the
    Code:
    <meta name="handheldfriendly" content="true">
    The problem however is that i want to completely redirect a mobile user to another version of the site instead of changing the syle. The reason being that some part of the site's content shouldnt even show for mobile users at all. i know i could as well use the css to make their display none but since they are already buffered out it would be a waste of bandwidth especially at the user end. Or what do u think?

  • #4
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    My choic would be te make another stylesheet, but that's me.

    I don't know which user-agents mobile devices are using but if you know them you can check that with PHP for example and redirect them to another map, for example http://mobile.yoursite.com.

    The disadvantage of this is when newer mobile browsers are released you have to update your check.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •