cross-browser

Does every browser support all unicode? [closed]

a 夏天 提交于 2019-12-19 05:24:01
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I want to reduce the number of HTTP-requests by using Unicode instead of small image icons. The icons I'd like to use include ✔ ,► ,etc. For a complete list of all required characters, see here Do all browsers support these characters by default? If not supported by default, can I add support for these

Capturing onkeydown in Javascript

狂风中的少年 提交于 2019-12-19 04:44:13
问题 I have a web front-end to an AS/400 CGI application which allows the use of some of the F1 - F24 keys (depending on the page) as well as page-up, page-down etc - these are passed to the underlying application which handles them appropriately. For instance, on a given page, a user could either press the F3 button or press the F3 key - both of them will set the (hidden) CmdKey variable to have a name of '_K03' and a value of 'F03'. The button handling is simple and has no problems. To handle

Lightweight library for cross-browser event support [closed]

你离开我真会死。 提交于 2019-12-19 04:07:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . Cross-browser handling is quite a hassle sometimes. In this case I need to capture quite a number of events, but cannot afford to use a multi purpose library that exceeds 10ish Kb . (e.g. jQuery, Prototype, Dojo, YUI, ...) The script is meant as a basic tracking tool for various sites I'm maintaining. Every

Date issue in Firefox

无人久伴 提交于 2019-12-19 03:32:20
问题 I want to parse date in my page to Javascript's Date . So I have this in my page <span>01-07-2012 01:04 PM</span> And I have Javascript code that parses this value to date var tagText = $(this).html(); var givenDate = new Date(tagText); alert(givenDate); And here is what I get in different browsers IE: Sat Jan 7 13:04:00 UTC+0400 2012 Chrome: Sat Jan 07 2012 13:04:00 GMT +0400 (Caucasus Standard Time) Firefox: Invalid Date Why Firefox doesn't recognize my date? What I must change to make it

display:table versus using tables

China☆狼群 提交于 2019-12-19 03:18:13
问题 I was wondering if it's a good idea to use CSS display property to emulate tables for a veeeery simple forum system. I know this wasn't good thing to do like 2 years ago when IE and maybe others did not support display:table / table-cell etc. But I think now all browsers support it, right? 回答1: If the information being displayed on the forum is tabular, then don't be afraid to use a table if it makes sense semantically. For general page layout, personally I wouldn't use it. I'd stick to the

Multiple file uploader in HTML5 — browser support?

心已入冬 提交于 2019-12-19 02:27:43
问题 I read that the HTML5 spec introduced the ability to select multiple files in an upload form. What browsers currently support this? Does Adobe AIR support it? Bonus question: Is there a JavaScript library that takes advantage of this functionality? 回答1: Firefox 3.6, soon to be released, will have it as well, along with some other file-related goodies: http://hacks.mozilla.org/2009/12/multiple-file-input-in-firefox-3-6/ It is also supported by Chrome 3. I have no info on Adobe Air, but it

When did all browsers start supporting the String.replace(regexp, replacement_function)?

落花浮王杯 提交于 2019-12-18 19:01:56
问题 According to the 6th Edition of JavaScript: The Definitive Guide (Flanagan, 2011): ECMAScript v3 specifies that the replacement argument to replace() may be a function instead of a string. I'm looking at some code written in 2005, where a complicated workaround has been used to replace parts of a string. The comments for the code clearly indicate that it originally used the functional replace() method but that the workaround was necessary for cross-browser compatibility. ECMAScript v3 came

document.readyState on DOMContentLoaded?

蓝咒 提交于 2019-12-18 16:27:13
问题 In browsers that support the event DOMContentLoaded and the property document.readyState : When DOMContentLoaded fires, can I assume that the value of document.readyState will always be either "complete" or "interactive" /"loaded"? (Or could it be that document.readyState sometimes still has the value "loading" ?) In your answer please provide a reference to an authoritative source. You may wonder: Why not just listen to readystatechange ? It is because the Android 2.3.5 standard browser is a

Are there still ECMAScript 3 implementation differences in major browsers?

和自甴很熟 提交于 2019-12-18 16:11:30
问题 Can someone point out the differences in implementation of ECMAScript 3rd edition in today's browsers? (Chrome, Safari, IE8, FF) Are we safe when using ECMAScript 3 standards (and not the extensions that FF and IE have to JScript and JavaScript)? 回答1: Well, of course there are implementation bugs, the most serious that I've had to deal with are on JScript, the Microsoft implementation of the standard, for example: Identifier of FunctionExpressions should be accessible only in the inner scope

Should I be using nav or ul

风流意气都作罢 提交于 2019-12-18 13:07:40
问题 I'm making a navigation menu, should I be using the <nav> element or <ul> element for that? If I use a nav I'll prob need to use a shiv so that it works across browsers. If that's so, what the advantage of using a nav over a ul ? EDIT: I know you can put a ul into a nav my question is why use a nav at all? 回答1: Don't get confuses with <nav> and <ul> . They both can be used together for a navigation menu. Nav is an HTML5 tag. If you are creating something in HTML5 you can use <nav> as there is