C
C
Chvanikoff2010-10-20 11:52:16
JavaScript
Chvanikoff, 2010-10-20 11:52:16

Materials for working with JS in IE

Good day!

Tell me, please, is there any book, or a resource where all the information (or rather, as much as possible) on writing cross-browser JS would be collected together. And then everything that I find, no matter how proudly it positions itself, is usually just another copy-paste of the same “tricks”. Moreover, the materials are not interested in JS as a whole, but precisely those materials that tell how you can’t do it in IE, but how you can do it only in IE :)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton, 2010-10-21
@Mew

on javascript.ru (on the right) is a very nice tutorial, there are descriptions of important points specifically for cross-browser compatibility. For example, how to hang events cross-browser, domReady and other interesting things are painted.

C
Cake_Seller, 2010-10-20
@Cake_Seller

Hmm, well, as far as I know, there is no whole book devoted specifically to layout problems for IE. Although there is a book " PPK on Javascript " - it is devoted to writing cross-browser code. And of course, the Peter Paul Koch site itself quirksmode.org , where, in principle, you will find all the same information as in the book. Positioniseverything.net
might also come in handy .

A
Anton Korzunov, 2010-10-21
@kashey

javascript generally works great in all browsers.
IN ALL.
This is not css or layout where any glitches are possible.
There are only two "popular" moments in IE - events and ajax - both are solved once and forever in 10 lines. Well, operations with strings and sorts are different. Which simply, with careless handling, slow down.
Have you ever thought about javascript under... Chrome?
That's who shamans so it's him - he loses the order of the elements and overrides some fields of some elements.
For example, the name of a class (mootools especially suffers from this, because in name it will have the name of the class constructor function).

C
Chvanikoff, 2010-10-21
@Chvanikoff

css.appendChild(document.createTextNode(cssContents)); Works great with Chrome.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question