Questions tagged [cross-browser]

Cross-browser refers to the ability of a website, web application, HTML construct or client-side script to function in environments that provide its required features and to bow out or degrade gracefully when features are absent or lacking.

Filter by
Sorted by
Tagged with
1 vote
1 answer
429 views

Detecting supported browsers in ASP.NET MVC (Server side vs. Client side)

I want to check client's browser version, and if it's too old, display a message that the user should update their browser in order to use the website. The website is built using ASP.NET MVC. I have ...
user avatar
1 vote
2 answers
212 views

Javascript Anime Support Switch Statement for .animate() Api

This is a revision of a previous question that I asked (i.e. Check browser compatibility for RequestAnimationFrame and Vanilla JavaScript .animate() API), with new aspects that I have learnt in ...
user avatar
1 vote
3 answers
883 views

Check browser compatibility for RequestAnimationFrame and Vanilla JavaScript .animate() API

I'm trying to set up some code to first test if the Vanilla JavaScript .animate() API is Supported, then if it's not check if ...
user avatar
3 votes
2 answers
109 views

classList fallback (IE & older browsers)

I'm trying to make some JS code more browser compatible. So I've written an alternative to JS's classList providing its .add(), <...
user avatar
  • 41
4 votes
0 answers
38 views

Browser and Node.js compatible code require

The Reason The reason I designed this code was that in many cases, when I wanted to test code in the browser that would be running on a Node instance, the code that I was copying (Don't worry, ...
user avatar
1 vote
1 answer
68 views

Reusable webdriver framework using SOLID design principles

I am trying to design some classes which I intent to use as a framework. I would like them to be compliant to SOLID design principles. I had a basic structure and then I implemented Strategy design ...
user avatar
  • 193
0 votes
2 answers
92 views

Attaching a click handler in a cross-browser way

I have been attempting to have a method call, with a parameter, inside of a ternary operator to simplify some code. Code: ...
user avatar
2 votes
0 answers
58 views

Chromium based browser and Firefox omnibox: paste/type search keywords to go straight to google.com search results

Functions and features: paste/type search keywords to go straight to google.com search results pages - explicitly google.com NO google.TLD ...
user avatar
0 votes
1 answer
38 views

File listing layout

I am designing a very basic file listing layout in HTML and CSS. Although its working but I would like to know if the following code could be improved upon so that its more good and follows the best ...
user avatar
  • 231
2 votes
1 answer
1k views

Displaying "tooltips" in Highcharts

I have the following piece of code: ...
user avatar
2 votes
1 answer
186 views

Cross browser JavaScript implementation of xhr

I wrote a small, cross browser compliant implementation of xhr requests in client JavaScript that closely follows the jQuery $.ajax() API and standards. The goal is ...
user avatar
  • 153
1 vote
1 answer
4k views

Converting an SVG polygon path from relative to absolute coordinates

This question was moved from StackOverflow as suggested by some users. I developed a function that aims to (should) provide a simple and effective method to transform a polygon ...
user avatar
  • 113
5 votes
1 answer
834 views

IE compatibility mode detection

This method is written for much larger Web application, but I just extracted it and added class and main method around it so that it can be debugged locally. Browser detection is done in another ...
user avatar
3 votes
1 answer
60 views

Re-writing rough JS code with loads of jQuery plugins

I want to include about 10 jQuery plugins in a project but do so in a better way than just pasting them into a JS file. I want to capture various device data and other data passed from the server-...
user avatar
6 votes
1 answer
451 views

Toggling Fullscreen

Please review this code: ...
user avatar
  • 207
6 votes
2 answers
3k views

User agent classification using switch (true)

I've seen usage of switch(true) multiple times and have used it myself today instead of multiple elseif`s. Here is the case I ...
user avatar
2 votes
1 answer
464 views

Implementing a cross-browser event utility as an exercise

I am currently learning JavaScript and created this cross-browser event utility as a learning exercise. It was not meant to be used in production code, and I just tried to cover only the cases that I'...
user avatar
  • 297
11 votes
1 answer
4k views

querySelectorAll shim for non-IE browsers

Every shim I have seen for this function has used the IE-only CSS expression trick. While there's no denying it's effective, it's made useless if the browser is not ...
user avatar
4 votes
1 answer
886 views

Cross-browser double form submit prevention

We developed a potential solution for the double form submit prevention and we need some review on it. To be able to execute this code on asp.net we needed to add our function call directly into the <...
user avatar