Questions tagged [browser-detection]

Detecting the type and version of the browser the user uses to view the webpage.

Detecting the type and version of the browser the user uses to view the webpage. Most of the time the decision is based on the User-agent string or the existence of some proprietary properties.

In most cases, it is considered bad practice. Feature detection is to be used instead.

520 questions
0
votes
1 answer

Detect Blackberry pre OS 7

I need to be able to detect if my webpage is running on a blackberry before OS 7. I need to be able to tell a user that certain elements will no function correctly. Is this possible?
Mild Fuzz
  • 29,463
  • 31
  • 100
  • 148
0
votes
1 answer

How to port get_browser() from PHP to ColdFusion?

browscap.ini that get_browser() depends on is found at http://browsers.garykeith.com/downloads Does anyone know how to port the seemingly simple get_browser() to CFML? Thanks!
Henry
  • 32,689
  • 19
  • 120
  • 221
0
votes
2 answers

firefox browser detection in ubuntu

I just face this problem when starting to use Ubuntu. I wonder why Request.Browser.Browser.ToLower().IndexOf("firefox") return true for firefox on windows but false for firefox on Ubuntu?
pang
  • 3,964
  • 8
  • 36
  • 42
0
votes
1 answer

Jquery Mobile I have two page one for android and one for iphone. How can i detect the browser and assign them?

I have a doubt in jQuery Mobile. I am building a browser page for Android and iPhone. I created both pages in two different HTML files. But i want to have one File and i want to assign the android browser for android page and iphone browser for…
dhiku
  • 1,818
  • 2
  • 22
  • 38
0
votes
2 answers

Accurate browser detection/redirect possible using JavaScript?

Please forgive me if this answer is somewhere else on this site or online. If it is, I sure haven't found it in the past several days of searching. What I am hoping to find is an "accurate" method of detecting a browser and redirecting to a simple,…
David12
  • 1
  • 1
-1
votes
3 answers

Android phone or Android tablet detection by http headers

Is there a way to detect whether user is accessing your website from android powered tablet or phone on the server side? I don't own any android devices, so it's not possible for me to test what kind of headers those devices send. In my research I…
Marakoss
  • 588
  • 1
  • 10
  • 24
-1
votes
1 answer

new method to detect ie browser , is it reliable?

I have heard that browser sniffing is bad , i have seen the below method used to detect if a browser is IE or not: var isIe = !!window.ActiveXObject, is it a reliable way to detect ie ? I have seen this method used in plugins like HERE
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
-1
votes
3 answers

How to detect browser type (not version) using jQuery 1.9 or Javascript?

I only need to detect if the browser is Internet Explorer, regardless of version, and add an "IE" class to my document body, using jQuery 1.9 or Javascript. I want to avoid using plugins like modernizr because it seems overkill for this. Context:…
Diego R
  • 77
  • 2
  • 9
-1
votes
2 answers

Browser detection with IE10/IE11

I am trying to redirect users to certain pages depending on which browser they are using, specifically if IE, then go to this page, else any other browser this page.. I had a JavaScript function that was working fine, but after IE10/IE11 came out,…
-1
votes
1 answer

Javascript stylesheet switcher

Excuse me if this question has been answered I have looked and seen things that come some what close but don't really solve my problem. What I want to do is use a short JavaScript code to switch from one stylesheet to another depending on the…
-1
votes
1 answer

Record Browser Information

I need a way to detect and record the browser and version the client is using when visiting my site. I was wondering what the best way of doing this is. I am using MVC.net on the server end and JQuery 1.9+ and Modernizer for the client side. Looking…
user2258403
  • 766
  • 6
  • 8
-1
votes
2 answers

how to run jQuery code only in IE8

I am tasked to put jQuery into a webapp, needful of functionality specific to the Internet Explorer 8 browser (7 is not needed). How to do this? In jQuery 1.8 could do: if ($.browser.msie && $.browser.version == '8') { /* does not matter */ } In…
PRASHANT P
  • 1,527
  • 1
  • 16
  • 28
-1
votes
4 answers

PHP if is chrome on windows

I'm doing some PHP includes depending on browser, and need to target Chrome on Windows I've got this to target all IE browsers (MSIE) is there some way I can also target Chrome for Windows? if (isset($_SERVER['HTTP_USER_AGENT']) &&…
RooWM
  • 583
  • 9
  • 23
-1
votes
5 answers

js browser detection for IE

My question is the folowing Is there a solid javascript code to detect if a browser is IE(I don't care about others) I found some script, but it generates an undefined error in FF. I edited my question because I found some regex serverside solution…
Richard
  • 4,516
  • 11
  • 60
  • 87
-2
votes
1 answer

How to detect if Xiaomi's Mi Browser using JS

How to check using javascript if the user visiting my website is doing so using Xiaomi's native - Mi Browser.
Faris Kapo
  • 346
  • 9
  • 30
1 2 3
34
35