Jul. 19th, 2007

jcfiala: (Default)
When making sure your firefox javascript works in ie, remember these:


  1. When declaring a new variable, firefox lets you get away with not using var, but ie seems to get grumpy when you do that.
  2. When appending nodes to the table, ie wants you to do something like formNode.tBodies[0].appendChild(codeRow), whereas firefox is happy to go with formNode.appendChild(codeRow)
  3. If you change the name of an object in javascript, the name *is* changed - but if you do an alert(object.outerHTML) to check it, you will see the old value. alert(object.name) will show that the name has, indeed, changed.


Oh, how much fun javascript can be!

October 2020

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 13th, 2025 06:00 am
Powered by Dreamwidth Studios