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.
22 questions
0 votes
1 answer
2k views
Encrypt and decrypt text using 256-bit AES-GCM
I'm working on building an encrypt/decrypt feature using AES, and a fixed AES 256-bit key size. I have decided on using AES-GCM, as it seems the most performant and secure. I would like to know ...
0 votes
1 answer
109 views
Ajax to load data for company products without refreshing the page
I am using AJAX script to fetch data from a database. For example, it has Motorola Samsung Apple as company and I use AJAX to fetch models of it, so that when Apple is selected then it shows Apple ...
2 votes
1 answer
236 views
All-JavaScript WhatsApp button
The following code creates a WhatsApp button. How would you improve this code? ...
1 vote
1 answer
2k 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 ...
1 vote
2 answers
315 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 ...
1 vote
3 answers
1k 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 ...
3 votes
2 answers
182 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(), <...
5 votes
1 answer
93 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, copying ...
1 vote
1 answer
110 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 ...
0 votes
2 answers
154 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: ...
2 votes
0 answers
92 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 ...
0 votes
1 answer
74 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 ...
2 votes
1 answer
1k views
Displaying "tooltips" in Highcharts
I have the following piece of code: ...
2 votes
1 answer
226 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 ...
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 ...