cross-browser

Testing for multiple screens with javascript

Is it possible to tell if the user of a website is using multiple monitors? I need to find the position of a popup but it's quite likely the user will have a multiple monitor setup. Whilst window.screenX etc. will give the position of the browser window it's useless for multiple monitors. ...

How to get a reference to the currently focused form field in JavaScript?

I'm looking for a cross-browser method - I know IE has something (I've already forgotten what), and the way to do it in Mozilla may have to do with a focusNode thing I found, that seems related to getting text selections. Methods involving jQuery or another common JS library are fine by me. Thanks! ...

What's the CSS Filter alternative for Firefox?

I'm using CSS Filters to modify images on the fly within the browser. These work perfectly in Internet Explorer, but aren't supported in Firefox. Does anyone know what the CSS Filter equivalent for these is for Firefox? An answer that would work cross browser (Safari, WebKit, Firefox, etc.) would be preferred. <style type="text/css"> ...

Which web browsers natively support Array.forEach()

Which browsers other than Firefox support Array.forEach()? Mozilla say it's an extension to the standard and I realise it's trivial to add to the array prototype, I'm just wondering what other browsers support it? ...

Cross Browser Flash Detection in Javascript

Does anyone have an example of script that can work reliably well across IE/Firefox to detect if the browser is capable of displaying embedded flash content. I say reliably because I know its not possible 100% of the time. ...

Picture over Flash

Do you know any solution to put a picture over a Flash? It must work in IE6, IE7, Firefox for Windows, MacOSX, Linux and Safari. ...

Are the PUT, DELETE, HEAD, etc methods available in most web browsers?

I've seen a couple questions around here like How to debug RESTful services, which mentions: Unfortunately that same browser won't allow me to test HTTP PUT, DELETE, and to a certain degree even HTTP POST. I've also heard this, that browsers support only GET and POST, from some other sources like: http://www.packetizer.com/ws/res...

Crossbrowser equivalent of explicitOriginalTarget event parameter

Hi, Does anyone know of crossbrowser equivalent of explicitOriginalTarget event parameter? This parameter is Mozilla specific and it gives me the element that caused the blur. Let's say i have a text input and a link on my page. Text input has the focus. If I click on the link, text input's blur event gives me the link element in Firefo...

What is the most stable modal dialog implementation across browsers to use from javascript for a web app?

I'm using a lot of JQuery in a web application that I am building for a client and I want to find an javascript implementation of a modal dialog that is reasonably stable across the following browser set. IE 7+ FF 2+ Chrome and Safari I've tried a couple of jQuery plugins but there always seems to be artifacts in one of these browsers....

jQuery CSS selectors in IE

The following works in Firefox, but breaks in IE7 & 8: $("#my-first-div, #my-second-div").hide(); so I have to do this: $("#my-first-div").hide(); $("#my-second-div").hide(); Is this normal? EDIT: ok, my actual real-life code is this: $("#charges-gsm,#charges-gsm-faq,#charges-gsm-prices").html(html); and my error is this ( IE...

Cross-platform, cross-browser way to play sound from Javascript?

I am writing a dhtml application that creates an interactive simulation of a system. The data for the simulation is generated from another tool, and there is already a very large amount of legacy data. Some steps in the simulation require that we play "voice-over" clips of audio. I've been unable to find an easy way to accomplish this ...

Drop Down List Issue

Hi all, I’m having an issue where a drop down list in IE 6/7 is behaving as such: You can see that the drop down width is not wide enough to display the whole text without expanding the overall drop down list. However in Firefox, there is no issue as it expands the width accordingly. This is the behaviour we want in IE 6/7: We’ve...

Change of class does not result in the new class's rules being applied in IE6??

I have a single image with 9 different states and the appropriate background-position rules set up as classes to show the different states. I can't use the :hover pseudo-selector because the background image being changed is not the same element that is being hovered over. I have defined the classes this way: #chooser_nav {width:580px; ...

Your choice of cross-browser javascript GUI

There are a number of great and not so-great Javascript GUI frameworks out there. I've looked at some (only superficially). And I can't make my mind about any of them Scroll to the end of this question to see what others say Ext.js The obvious choice by many since it's one of the most known frameworks. Advantages: Looks awesome, large...

Why does a floated <input> control in a floated element slide over too far to the right in IE7, but not in Firefox?

Hopefully a picture is worth a thousand lines of code because I don't want to have to strip down all of the ASP.Net code, HTML, JavaScript, and CSS to provide an example (but I'll supply what I can upon request if someone doesn't say "Oh, I've seen that before! Try this...") [Actually, I did post some code and CSS - see bottom of questio...

Web site cross-browser testing in Practice

I'm looking for resources/suggestions on real world cross-browser web site testing. In this case the emphasis is on simple web content rather than javascript/AJAX or a server side applications. I've looked at the web stats & made a list of the highest-used browsers. Then what? For example, I'd love to hear experiences with: Is there ...

Better to develop cross-browser code up front or develop for one browser and go back and make it work in the others later?

I'm looking for feedback on peoples experiences with developing sites that work across browsers. It seems to me there are at least two obvious ways to approach the task of making your site/webapp work across browser: Constantly test across all supported browsers every step of the way; or Pick a browser, get everything working in it as...

Is it possible to read the clipboard in Firefox, Safari and Chrome using Javascript?

I'm trying to read the contents of the clipboard using Javascript. With Internet Explorer it's possible using window.clipdData.getData("Text") Is there a similar way of reading the clipboard in Firefox, Safari and Chrome? ...

Web pages and barcode fonts

I'm working on a small app where I can generate a list of barcodes. I have the correct fonts installed on my computer. Right now I am printing them directly to a webpage and it works properly in Chrome and IE 7, but not Firefox. Does anyone know what Firefox would be doing differently than IE and Chrome? Here is my code: <html> <he...

IE7 and the CSS table-cell property

So I just love it when my application is working great in Firefox, but then I open it in IE and... Nope, please try again. The issue I'm having is that I'm setting a CSS display property to either none or table-cell with JavaScript. I was initially using display: block, but Firefox was rendering it weird without the table-cell property...