Category Archives: JavaScript

eval() is evil: window to the rescue

In JavaScript eval() has long known to be evil. Take for example: function foo(){} foo["str1"] = “aaaa”; foo["str2"] = “bbbb”; foo["str3"] = “ccccc”; Elsewhere you need to lookup items from this structure. Where both “foo” and “str1″ are pass in … Continue reading

Posted in JavaScript | Comments Off

Opera 8.x XML/DOM appendChild problem

Found a problem with Opera’s XML/DOM support. Seems that they don’t support appendChild() if the document is created with an “” (empty) QualifiedName. document.implementation.createDocument(“”,”",null); This only seems to be a problem if you try to append to such a document. … Continue reading

Posted in JavaScript | Comments Off