Web Design Forum: Browser Detection - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Browser Detection browser and screen res detection Rate Topic: -----

#1 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 11:57 AM

Another post for a basic php script...

Currently designing a website, the website is built at a 1000 width so firstly we do not support websites with a lower resolution than this... is there anyway i can detect the screen resolution so we can output a message to tell the user that there is no problem with the website its simply because their screen res is terrible.

and before arguing on accessibility i have thoroughly researched screen res and usuage and less than 4% of users use a screen that supports less than 1000 width on resolution.

My second query is for browser detection.. we support all browsers that are upto date but do not and will not support any user that uses internet exploror 5 and 6.
what is the best way to detect browsers and output a popup.
i have already built the pop up with javascript but looking atways that i can make it more "dynamic"

"we are strong beleivers in moving with the times therefore we will not support people living in the past, please answer the question and not post an arguement regarding accessibility issues."

Hope to hear from some of you soon
Craig ;)
0

#2 User is offline   davewilly 

  • Dedicated Member
  • PipPip
  • View gallery
  • Group: Members
  • Posts: 155
  • Joined: 09-November 08
  • Reputation: 5
  • Gender:Male
  • Location:Bristol / Cheddar
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:13 PM

Well, from a usability/accessibility point.. only joking.

You can detect screen resolution with javascript and you can detect browser version with javascript or a server side language (php etc).

However, I would not recommend what you are proposing. Why would you completely deny access to 4% of users when they could still use the website? I would prefer a user to still have access and get a horizontal scrollbar rather than none at all.

"we are strong beleivers in moving with the times therefore we will not support people living in the past, please answer the question and not post an arguement regarding accessibility issues."

As for the javascript popup.. welcome to 1999. It's most likely it will get caught by a popup blocker anyway.

There are some elegant methods of notifying users that their browser is unsupported, a js popup is not one of them. I've used this in the past http://code.google.com/p/ie6-upgrade-warning

Dave
0

#3 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:27 PM

View Postdavewilly, on 09 March 2010 - 12:13 PM, said:

Well, from a usability/accessibility point.. only joking.

You can detect screen resolution with javascript and you can detect browser version with javascript or a server side language (php etc).

However, I would not recommend what you are proposing. Why would you completely deny access to 4% of users when they could still use the website? I would prefer a user to still have access and get a horizontal scrollbar rather than none at all.

"we are strong beleivers in moving with the times therefore we will not support people living in the past, please answer the question and not post an arguement regarding accessibility issues."

As for the javascript popup.. welcome to 1999. It's most likely it will get caught by a popup blocker anyway.

There are some elegant methods of notifying users that their browser is unsupported, a js popup is not one of them. I've used this in the past http://code.google.com/p/ie6-upgrade-warning

Dave


loving the start of the comment :p

the script wont be designed to deny access to the 4% of users it will just tell them that there browser is not supported and give them an option to upgrade the website will still be visible. do you suggest i just use php to echo some text in a vicious shade of red to tell them to upgrade. i want it so it is "in the users face" when they hit the index page, hwoever i know a popup if it showed up on every page would just become an annoyance.
0

#4 User is offline   davewilly 

  • Dedicated Member
  • PipPip
  • View gallery
  • Group: Members
  • Posts: 155
  • Joined: 09-November 08
  • Reputation: 5
  • Gender:Male
  • Location:Bristol / Cheddar
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:32 PM

View Postcraigpettit, on 09 March 2010 - 12:27 PM, said:

loving the start of the comment :p

the script wont be designed to deny access to the 4% of users it will just tell them that there browser is not supported and give them an option to upgrade the website will still be visible. do you suggest i just use php to echo some text in a vicious shade of red to tell them to upgrade. i want it so it is "in the users face" when they hit the index page, hwoever i know a popup if it showed up on every page would just become an annoyance.


I don't suggest you "use php to echo some text in a vicious shade of red", no!

But if that's your goal, then yes you can do so. I'm trying really hard not to go on a usability rant here, you're talking to a HCI & Interaction Design expert. *deep breaths*

:D
0

#5 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:33 PM

View Postdavewilly, on 09 March 2010 - 12:32 PM, said:

I don't suggest you "use php to echo some text in a vicious shade of red", no!

But if that's your goal, then yes you can do so. I'm trying really hard not to go on a usability rant here, you're talking to a HCI & Interaction Design expert. *deep breaths*

:D



hmm. i do beleive userbility is very importany and we do design the site for all users but we also beleive that everyone should move on from the likes of 800 res screens and ie 5 and 6.

i am really just looking for the best option to display this.
0

#6 User is offline   davewilly 

  • Dedicated Member
  • PipPip
  • View gallery
  • Group: Members
  • Posts: 155
  • Joined: 09-November 08
  • Reputation: 5
  • Gender:Male
  • Location:Bristol / Cheddar
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:37 PM

View Postcraigpettit, on 09 March 2010 - 12:33 PM, said:

hmm. i do beleive userbility is very importany and we do design the site for all users but we also beleive that everyone should move on from the likes of 800 res screens and ie 5 and 6.

i am really just looking for the best option to display this.


Well if you want 'in your face' here ya go: http://css-tricks.co...-blocker-script

Here's some more elegant attempts: http://garmahis.com/...-update-warning
0

#7 User is offline   craigpettit 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 174
  • Joined: 11-September 08
  • Reputation: 0
  • Location:Surrey UK
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 09 March 2010 - 12:40 PM

View Postdavewilly, on 09 March 2010 - 12:37 PM, said:

Well if you want 'in your face' here ya go: http://css-tricks.co...-blocker-script

Here's some more elegant attempts: http://garmahis.com/...-update-warning



yeah certainly like that second link. thank you for you help!
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users