Results 1 to 14 of 14

Thread: Web pages for Mobile phone browsers

  1. #1
    Join Date
    Jan 2004
    Posts
    6,949

    Question Web pages for Mobile phone browsers

    Anyone with experience of designing web pages which will also render well on a mobile phone browser.

    It would be nice to do it using separate CSS style sheets. How do I get the site to know it's a mobile and use the right style sheet or go to the right web page accordingly?

  2. #2
    I just put up a mobile skin for PF yesterday actually. What you do is check the user agent and switch the skin accordingly. Here are a list of most of the mobile user agents.

    http://www.zytrax.com/tech/web/mobile_ids.html

    I'd select the 5 most popular.

    The skin should be narrow, low graphic and watered down.

  3. #3
    Join Date
    Jan 2004
    Posts
    6,949
    So there isn't something generic to all mobile phone browsers then?

    I know facebook and twitter have managed to do this somehow

  4. #4
    Quote Originally Posted by Sticks View Post
    So there isn't something generic to all mobile phone browsers then?

    I know facebook and twitter have managed to do this somehow
    Not that I know of and I've researched this a bit. I bet FB and Twitter just check for all 30 or so mobile user agent strings.

  5. #5
    Join Date
    Sep 2008
    Posts
    893
    If you're willing to design separate pages, then you can detect (for the most part) what is being used and redirect accordingly. Different style sheets may work, or you might have to condense information in a different page. Depends on the site really, and what info you're trying to show.

    If you're familiar with PHP, or are willing to translate it into another server side script, http://detectmobilebrowsers.mobi/ has something that may work for you.

    I found the biggest problem really is the Blackberries. They're everywhere, and they have the worse browser by default. Users can change to the Opera Mini, which displays 'normal' webpages pretty well without modifications, like the iPhone. But like in the regular PC world, how many people know enough to alter what comes already installed. In my brief delve into that world, I figured out it was a lot of extra work to attempt to make my page look the same in a Blackberry, and since they could read the information, it just wasn't as pretty, I figured it wasn't worth the struggle.

    It's been described as version 2 of the 90's browser wars, where everyone's doing their own thing and there's no real standard.

  6. #6
    Join Date
    Jan 2004
    Posts
    6,949
    I am not familiar with PHP, will this be easy to put in?

  7. #7
    Join Date
    Jan 2004
    Posts
    6,949

    Question

    Quote Originally Posted by Rhaedas View Post
    If you're familiar with PHP, or are willing to translate it into another server side script, http://detectmobilebrowsers.mobi/ has something that may work for you.

    I have used the function generator to generate some code, do I just embed it into the page I want the mobile user redirected from, and if so where?

    Note I have not yet studied or learned PHP.

  8. #8
    Join Date
    Sep 2008
    Posts
    893
    Right above the function generator is the usage guide, which gives you the function to include and how to call it, as well as the different parameters to control what happens with which mobile device. You'd first have to make sure you have PHP enabled on your host server, of course. You just upload the whole function, include it in the first page, and set the device parameters according to how you want it to respond.

    PM me if you need more help.

    The biggest problem I've found is testing...unless you happen to own all these different mobile phones, or know a lot of people that have them all, it's hard to be sure it'll display okay. That's why for me it was just easier to make sure that my layouts degrade gracefully, and at least they get the content, even if it isn't pretty.

  9. #9
    Quote Originally Posted by Rhaedas View Post
    The biggest problem I've found is testing...unless you happen to own all these different mobile phones, or know a lot of people that have them all, it's hard to be sure it'll display okay. That's why for me it was just easier to make sure that my layouts degrade gracefully, and at least they get the content, even if it isn't pretty.
    haha yeah, I had to pretty much call up all my friends and family who had different phones

  10. #10
    In theory there is a CSS media type called "handheld" that was meant to do what you want, but in practice I don't know if any phone or mobile device actually pays attention to it. Like others mentioned, try to go for graceful degradation and flexible layout.

    Nick

    edit: here's a page with some tips. She mentioned the small-screen mode on Opera, and I can see it's there on my version of Opera, but I don't know if that actually emulates any device that is in use.

  11. #11
    If you start with
    I am not familiar with . . ., will this be easy. . ..
    The answer will be no.

    It may be easier than several other ways of doing it, but it won't be easy.
    __________________________________________________
    Reductionist and proud of it.

    Being ignorant is not so much a shame, as being unwilling to learn. Benjamin Franklin
    Chase after the truth like all hell and you'll free yourself, even though you never touch its coat tails. Clarence Darrow
    A person who won't read has no advantage over one who can't read. Mark Twain

  12. #12
    Join Date
    Jan 2004
    Posts
    6,949
    My attempts this evening did not work

    In fact on my Samsung Mobile J700i putting the files in place made that page fall over on my mobile, so backed out all my changes.

    I have emailed my code to the guy who hosts the site, to see if he has any ideas

  13. #13
    How did it look before you started mucking around with it?

    Nick

  14. #14
    Join Date
    Jan 2004
    Posts
    6,949
    All squeezed together and unable to activate any links outside the menu on the left

Similar Threads

  1. Is there a Mobile Phone Engineer in the house (Part 2)
    By Sticks in forum Off-Topic Babbling
    Replies: 13
    Last Post: 2006-Nov-09, 09:31 AM
  2. Is there a mobile phone engineer on the board?
    By Sticks in forum Off-Topic Babbling
    Replies: 26
    Last Post: 2005-Dec-27, 09:09 PM
  3. Mobile/Cell Phone Type
    By jkmccrann in forum Off-Topic Babbling
    Replies: 9
    Last Post: 2005-Oct-27, 11:49 AM
  4. Mobile phone star charts...
    By ksodbartman in forum Astronomy
    Replies: 1
    Last Post: 2005-Jan-21, 07:22 AM

Posting Permissions

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