Questions tagged [cross-browser]

Cross-browser development refers to the practice of building web sites, web applications, libraries, or components so that they function across different web browsers and rendering engines.

Cross-browser development refers to the practice of building web sites, web applications, libraries, or components so that they function across different web browsers and rendering engines. This contrasts with the concept of developing for one browser or engine.

9067 questions
4
votes
4 answers

Browser-friendly way to simulate anchor click with jQuery?

I'm trying to simulate a click on an anchor tag using jQuery. I've been digging around StackOverflow and Google for a while and haven't found anything that works on all of the browsers I'm testing. So far, I've found…
ezkl
  • 3,829
  • 23
  • 39
4
votes
0 answers

OpenSearch javascript methods

It seems only Chrome supports IsSearchProviderInstalled method. IE8+ and Firefox always return 0. Is there any reason for deprecating IsSearchProviderInstalled method in IE8+? Is there any alternative? I want to remove add button if my search…
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173
4
votes
3 answers

CSS: a piece of background in different color?

I'm trying to make a crossbrowser implementation of background in 2 parts each of different color. Like this: https://i.stack.imgur.com/gxdYE.jpg For this I've wrote following code (fiddle: http://jsfiddle.net/yrQAx/): …
Daniel
  • 4,272
  • 8
  • 35
  • 48
4
votes
1 answer

Is onpropertychange equivalent to oninput?

Is it reasonably fine to bind an event handler to an element both on the 'input' and 'propertychange' events to target support for IE8 and other browsers? $('.element').on('input propertychange', function(){...}); Or are there pitfalls to doing…
Sam
  • 6,414
  • 11
  • 46
  • 61
4
votes
3 answers

Remove Blue border in IE 10 Compatibility View

How can I remove or just don't display the border links in every anchor with image? By the way, browser settings is in compatibility mode. Answers from other question doesn't suffice to solve my problem. I guess because it only applies with lower…
roybalderama
  • 1,650
  • 21
  • 38
4
votes
0 answers

saveAs function not working in Safari?

I am trying to display a base64 PDF in an iFrame after a user generates it. For some reason it is extremely unresponsive in Safari and does not display correctly. My workaround is to detect Safari (among other things) and save a blob. I've tested it…
muzzledBYbrass
  • 276
  • 1
  • 3
  • 11
4
votes
1 answer

Why I get GridException when trying to open a website using Selenium

I am new to selenium. This is what I did: I started a standalone selenium server on cmd prompt. I ran below code, for both webDriverWay() and seleniumWay() I get error like below. In both cases I get My test code: static String baseUrl=…
akk
  • 95
  • 1
  • 5
4
votes
2 answers

CSS input field styling magic

I am trying to style an input field and some buttons in a consistent way, but there seems to be some magic going on. Event though the input has the exact same classes as the buttons it is slightly higher. Also the placeholder text is vertically…
4
votes
1 answer

JQuery - Script working in everything except IE10

I have here a fiddle for this problem. The script makes use of a bunch of cool functions, but it just does nothing on IE10. I don't know which one part of it disagrees with, is there a Javascript debugger available for IE10 or can someone see what…
Felix Weir
  • 459
  • 7
  • 18
4
votes
1 answer

CSS3 media queries not working on Safari on iPod/iPhone

I am developing a responsive design website. The website will be optimized for iPhone and iPod (Both having width 640px). I am using the following CSS3 media queries: @media screen and (max-width: 640px) { .display-none-mobile{ …
CodeMonkey
  • 2,265
  • 9
  • 48
  • 94
4
votes
5 answers

Margin percentage different in Safari than Chrome/Firefox

I'm encountering this weird bug in Safari and it's really annoying because I can't find a solution. I've looked at similar questions on StackOverflow and on the internet but none solved my question. The example in question is on…
yorbro
  • 1,107
  • 1
  • 9
  • 23
4
votes
2 answers

JQuery .animate() only works in Chrome

I am using the JQuery .animate() function to slide divs in a container div. This works without issue in Google Chrome, but when I try in either Firefox or IE, the divs become a garbled mess and don't actually slide. I'm new to Javascript and…
4
votes
2 answers

JQuery masked input plugin does not work on IE7

I'm using Jquery Masked input plugin http://digitalbush.com/projects/masked-input-plugin/ According to the changelog it should support IE7 When when trying to use it on IE7 It's does not work and I'm getting the following error in IE…
john Smith
  • 1,565
  • 7
  • 34
  • 54
4
votes
3 answers

What happens with display:initial on non CSS3 browsers?

I need to know what value/ css would be set when I use display: initial on non CSS3 compliant browsers ? I'm hiding the class using display:none & need to show back, for which I intend to use display: initial (I dont want to use display:block if…
Rajat Gupta
  • 25,853
  • 63
  • 179
  • 294
4
votes
1 answer

IE9 - SCRIPT5009: "jQuery" is undefined

the following code runs into the error SCRIPT5009: "jQuery" is undefined in IE9 (maybe also in older IE versions): var $tx; if (window.jQuery) { $tx = jQuery; if( jQuery().jquery.replace(".", "") < 17.1 ) { addjQuery(); } }…
Ingo Just
  • 133
  • 3
  • 8