[thelist] Form generated in JS doesn't work in IE
Ken Snyder
kendsnyder at gmail.com
Wed May 28 10:19:26 CDT 2008
Chris Price wrote:
> I have a form generated in javascript which works fine in FF but refuses
> to work in IE.
>
> I've checked the dom (in IE) and everything appears to be there but on
> submit I get 'this.width.value is null or not an object'.
> ...
>
Try using a different name for your inputs besides width and height.
There are dozens of reserved words in IE that will cause such problems
when used as names or ids (e.g. length, tags, item, etc.). see
http://meyerweb.com/eric/thoughts/2005/08/29/reserved-id-values/
You may also be able to access them using the more explicit
"this.elements['width'].value" syntax.
- Ken Snyder
More information about the thelist
mailing list