???
03-24-2009, 03:59 PM
If you want all of my code, it's at http://subatomicfusion.webs.com/js/test.htm. From there, there is an external Javascript file at http://subatomicfusion.webs.com/js/SOM/Element.js. In Firefox and Safari, my test.htm should be a rectangle with some colors and a box with text in it, and the whole thing should have a Picachu cursor. In IE this doesn't happen. It complains about an "Invalid Argument." at line 137, char 3, and this is on my Element.js file. The code around there is as follows, starting with line 135 and ending with 138 (137 is the }; one):
private.setStyle = function (name,value) {
private.element.style [name] = value;
};
//Methods
If I comment out private.element.style [name] = value;, there are no errors except that all the colors are based on styles so half my stuff doesn't show up. Could someone tell me why IE told me the wrong line number, and what the problem really is? It would be greatly appreciated.
Thanks,
Stephen
private.setStyle = function (name,value) {
private.element.style [name] = value;
};
//Methods
If I comment out private.element.style [name] = value;, there are no errors except that all the colors are based on styles so half my stuff doesn't show up. Could someone tell me why IE told me the wrong line number, and what the problem really is? It would be greatly appreciated.
Thanks,
Stephen