|
strange invalid syntax error in IE6
I have an HTML form with many elements (about 30). Each element is either text or a select drop down list, and each is preceded by a checkbox. There is a button, in the form, with the onclick event linked to a javascript function that checks whether at least one box is checked. If so, the form is submitted, otherwise throws up an alert dialog.
The issue here is that the form works without issue in Firefox/Mozilla (the javascript console in Mozilla shows no javascript errors) and Opera. However, in IE, it throws an "Invalid Syntax" javascript error, and the line it refers to contains only the closing brace for an if block.
I've narrowed the problem down to the number of elements in the form. Beyond a certain number (I believe 20), the error pops up in IE, but anything less there is no issue. I'm absolutely certain of this since I cut and pasted in the elements in one by one into the form, and in random order several times to make sure it wasn't just one specific element causing the problem.
Does anyone know if this is a known bug in IE? I know the simple solution is to just not use IE, but unfortunately, the people who are using this use IE exclusively. Any help appreciated. Thanks. Attached is the html. The javascript and stylesheet follow.
-NS
|