browser-feature-detection Questions
1
Solved
How should touch-enabled devices be differentiates between pure touch and ones that also have a mouse? (like some of today's laptops)
There is a need to give all mouse functionality a priority in ...
Belloc asked 19/2, 2014 at 17:28
2
Solved
Question
Is there any way to detect support for window.print()? I'd prefer to detect the feature itself vs trying to go down the rabbit hole of detecting whether I'm on a mobile browser or desktop...
Sergo asked 4/2, 2014 at 23:56
2
I'm experiencing issues with the YouTube player failing to load when the power save mode is enabled in Safari 6.1 and 7 on OSX. The issue doesn't happen if the youtube user is using the experimenta...
Vergne asked 15/1, 2014 at 18:3
4
Solved
I'm developing an application for both mobile and desktop browsers. I'm wondering if there is anyway to detect if a browser supports file uploading. I'm looking specifically for feature detection a...
Esdras asked 16/2, 2012 at 2:6
2
I'll start with the question. When a specific browser has a buggy implementation of a feature and your javascript needs to know whether the current browser has that buggy implementation or not so i...
Scythia asked 29/8, 2012 at 6:53
2
After a little research i discovered that Chrome and Opera render images inside a foreignObject if they have an absolute path, Firefox renders images only if they are in data-uri format because it ...
Squire asked 25/12, 2013 at 11:39
4
Solved
When researching JavaScript conditional comments for IE, I stumbled upon @cc_on. This seems to work. However, the wikipedia entry on conditional comments provides the following code for more robust...
Nevus asked 3/12, 2009 at 22:0
3
Solved
I was asked this question in a job interview recently, specifically around Javascript. I was wondering the proper response.
What exactly is the difference between feature detection, feature ...
Precess asked 20/11, 2013 at 19:17
3
Solved
I know how to check in Javascript if HTML5 audio playback is available. But how do I specifically check if MP3 audio playback is available, as IE9 and Chrome support it, while Firefox and Opera do ...
Nereidanereids asked 12/12, 2011 at 1:57
0
I've created a basic web app and it has a little "click here to add to home screen" pop up that appears if it's not in stand alone mode (i.e. not on your home screen already). I have a basic regist...
Carver asked 11/10, 2013 at 19:27
1
How can I test if a browsers support the CSS3 calc() property using Modernizr?
I have tried:
if (Modernizr.testProp('cssCalc')) {
console.log('CSS calc() supported');
}
but this only returns "...
Lloyd asked 21/8, 2013 at 13:59
3
Solved
In earlier versions, I used to test if I should be triggering popstate manually on page load, because Chrome triggers it right after load, and Firefox and IE do not.
if ($.browser.mozilla || $.bro...
Oilcan asked 27/1, 2013 at 6:27
4
Solved
I'm currently doing some redesign of a website, basically just upgrading it to a more up-to-date look and trying to make it as resolution independent as possible, and in the name of resolution inde...
Psychosomatic asked 7/11, 2010 at 14:56
1
Solved
Can we detect whether a browser supports dropping a file over an <input type="file" />?
For example, this is possible in Chrome but not in IE8.
Modernizr.draganddrop is a possibility but i...
Sanctimony asked 26/10, 2012 at 11:50
3
Solved
I've already done feature detection on a particular feature to decide if I can use it or whether I have to use a work-around. But, unfortunately, I found that IE has some bugs in that feature that ...
Kex asked 29/8, 2012 at 20:52
3
Different web browsers handle the window.close() function differently. IE prompts the user for confirmation, while Firefox and Safari just fail to honor it unless the window was originally opened w...
Boisleduc asked 24/10, 2011 at 21:30
4
Solved
In the past, the best method to check for the presence of a mouse was to look for touch event support. However, desktop Chrome now supports touch events, making this test misfire.
Is there a way t...
Dichromatism asked 24/2, 2012 at 9:7
3
Solved
Modern browsers except IE handle MJPEG (Motion JPEG). Here is an example fiddle.
Can I detect support for MJPEG? I have looked through Modernizr in vain.
Gennagennaro asked 15/12, 2011 at 14:30
3
Solved
I need to test for placeholder support. The following works great in all modern browsers, as well as IE7, IE8, IE9:
$.support.placeholder = (function () {
var i = document.createElement("input");...
Lithotomy asked 23/11, 2011 at 15:49
4
Solved
There are lots of ways for browser detecting in JavaScript.
As far as i know, using navigator.userAgent or detecting features (like XMLHttpRequest) and so on.
Can anybody tell me which way is the...
Dayledaylight asked 9/10, 2011 at 8:31
1
I've written a script to test for SVG support in the IMG tag:
function SVGinIMG() {
var SVGdata = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIG...
Frolic asked 21/9, 2010 at 10:33
© 2022 - 2024 — McMap. All rights reserved.