SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to target Samsung Galaxy S3 when the user agent differs from each network?

    Has anyone else run into this issue? Stackoverflow as some posts about it but nothing super helpful so was wondering if someone on here has found a way to target a range or specific user agent of the Samsung Galaxy S3?


    Thanks,
    Ben

  2. #2
    Under Construction silver trophybronze trophy AussieJohn's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    776
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Any reason you'd want to test for a particular user agent? (Feature testing might be a better option if you're trying to target new functionality).
    Last edited by AussieJohn; Oct 17, 2012 at 03:15. Reason: I said particular twice :P
    var details = {
    . . web: "afterlight.com.au",
    . . photos: "jvdl.id.au",
    . . psa: "usethelatestversion.com"
    }

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by bChandler View Post
    Has anyone else run into this issue? Stackoverflow as some posts about it but nothing super helpful so was wondering if someone on here has found a way to target a range or specific user agent of the Samsung Galaxy S3?
    Don't is my answer.

    Instead, make good use of CSS media queries instead, and if needed, feature detection.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I need a quick solution as I'm really time poor at this second to do adequate testing.

    I know the pitfalls, I have been through this conversation many times. If someone has the code it would be fantastic if they could post it.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by bChandler View Post
    I need a quick solution as I'm really time poor at this second to do adequate testing.

    I know the pitfalls, I have been through this conversation many times. If someone has the code it would be fantastic if they could post it.
    Here's a good article about it that includes some code.
    http://www.alistapart.com/articles/r...ve-web-design/
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    Here's a good article about it that includes some code.
    http://www.alistapart.com/articles/r...ve-web-design/
    Sorry I can't tell if you are legitimately trying to help or providing a link to an article I read when it first came out just to make a point that css and media queries are the way to go.



    If I need to provide a back story as to why I want a user agent solution: I work at an agency, I do front end design and coding.. with some js/php knowledge. I have a very old client site that my boss does not want to spend money on to fix, nor do we have the time, nor do the devs have the time to quickly test with me.

    I came here trying to find a very quick solution. I am completely aware of the advantages and disadvantages and will definitely come back to this project and do it right through a whole css re-write.


    But anyway thanks for your input.

  7. #7
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by bChandler View Post
    But anyway thanks for your input.
    The problem is that the iPhone 5 helped to highlight the problem that specific layouts for specific devices are guaranteed to break when progress occurs. And you can always guarantee that change happens.

    Android devices now have a range of 70 different layouts, depending on the type of device that is detected. That becomes a real problem when you have to create different layouts for each one.

    So as a result, mobile developers are turning back to css media queries so that screen-size break points can be used to help manage the complexity. This is also where an infinite grid system can be of a great help too.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  8. #8
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    The problem is that the iPhone 5 helped to highlight the problem that specific layouts for specific devices are guaranteed to break when progress occurs. And you can always guarantee that change happens.

    Android devices now have a range of 70 different layouts, depending on the type of device that is detected. That becomes a real problem when you have to create different layouts for each one.

    So as a result, mobile developers are turning back to css media queries so that screen-size break points can be used to help manage the complexity. This is also where an infinite grid system can be of a great help too.
    lol the iphone 5? mate these problems were around well before the iphone 5 was launched

    I'm starting to think this is probably the wrong forum to come looking for straight advice and solutions. If I wanted to brush up on my media queries and css skills I could open one of the endless twitter streams, blog posts, books I have access to and get a more comprehensive and detailed insight.


    Thanks though champ

  9. #9
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,702
    Mentioned
    101 Post(s)
    Tagged
    4 Thread(s)
    Quote Originally Posted by bChandler View Post
    I'm starting to think this is probably the wrong forum to come looking for straight advice and solutions.
    Well you're welcome to visit the developing for mobile devices forum. They're likely to know more about how to resolve your particular problem.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  10. #10
    SitePoint Enthusiast
    Join Date
    Feb 2008
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by paul_wilkins View Post
    Well you're welcome to visit the developing for mobile devices forum. They're likely to know more about how to resolve your particular problem.
    Thank you. That section looks promising.


Bookmarks

Posting Permissions

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