B
Bradley Kite
Hi all.
I'm trying to diagnose/solve a problem with internet explorer, whereby
sometimes the form submits, and other times IE produces an 'invalid
syntax' error.
First, I have a form, and within the form is a button bar and a <div>
block which contains a table of parameters. The div block is used to
create a layer.
Now, when the table contains 15 or less rows in it, any button on the
button
bar which calls form.submit() works as it should, however, where the
table has 16 or more rows, the form.submit generates an "invalid
syntax" error. IE doesnt provide any more detail on this error.
Mozilla/Netscape works as expected regardless of the number of rows.
I am using IE 6.0.2600.0000 but have also tried on other versions of
IE 6
and get the same results.
The code is as follows:
function _runButton()
{
document.getElementById('count_groups_form').submit();
}
<!-- Extra HTML removed -->
<form action="UpdateCount" method="get" id="count_groups_form"
enctype="application/x-www-form-urlencoded">
<input type="hidden" name="edit" value="0">
<input type="hidden" name="new_order" value="0">
<input type="hidden" name="action" value="">
<input type="hidden" name="has_changed" value="0">
<!-- Button Bar -->
<table class="button_bar" width="100%">
<tr>
<!-- other buttons removed -->
<td align="right" width="23%">
<input type="button" class="button" name="_run_button"
value="Run Count" onClick="_runButton();">
</td>
</tr>
</table>
<div align="left" class="count_groups" id="count_groups">
<table width="100%" class="without_border">
<!-- actual rows removed -->
</table>
</div>
</form>
Any help will be much appreciated.
Please reply to (e-mail address removed)
I'm trying to diagnose/solve a problem with internet explorer, whereby
sometimes the form submits, and other times IE produces an 'invalid
syntax' error.
First, I have a form, and within the form is a button bar and a <div>
block which contains a table of parameters. The div block is used to
create a layer.
Now, when the table contains 15 or less rows in it, any button on the
button
bar which calls form.submit() works as it should, however, where the
table has 16 or more rows, the form.submit generates an "invalid
syntax" error. IE doesnt provide any more detail on this error.
Mozilla/Netscape works as expected regardless of the number of rows.
I am using IE 6.0.2600.0000 but have also tried on other versions of
IE 6
and get the same results.
The code is as follows:
function _runButton()
{
document.getElementById('count_groups_form').submit();
}
<!-- Extra HTML removed -->
<form action="UpdateCount" method="get" id="count_groups_form"
enctype="application/x-www-form-urlencoded">
<input type="hidden" name="edit" value="0">
<input type="hidden" name="new_order" value="0">
<input type="hidden" name="action" value="">
<input type="hidden" name="has_changed" value="0">
<!-- Button Bar -->
<table class="button_bar" width="100%">
<tr>
<!-- other buttons removed -->
<td align="right" width="23%">
<input type="button" class="button" name="_run_button"
value="Run Count" onClick="_runButton();">
</td>
</tr>
</table>
<div align="left" class="count_groups" id="count_groups">
<table width="100%" class="without_border">
<!-- actual rows removed -->
</table>
</div>
</form>
Any help will be much appreciated.
Please reply to (e-mail address removed)