HowardMarks
MIS
Hi All
I've got a form which I want to submit automatically when a checkbox is clicked, but for some bizarre reason it isn't working. (I have other forms on the same page which DO work with exactly the same code).
I i.e. I get the error message 'object doesn't support this method or property'.
In Firefox I get the error message 'document.wsform.submit is not a function'
here is the form I am using:
What the hell am I doing wrong?
Many thanks in advance
Nick
Nick (Webmaster)
I've got a form which I want to submit automatically when a checkbox is clicked, but for some bizarre reason it isn't working. (I have other forms on the same page which DO work with exactly the same code).
I i.e. I get the error message 'object doesn't support this method or property'.
In Firefox I get the error message 'document.wsform.submit is not a function'
here is the form I am using:
Code:
<form name="wsform" id="wsform" action="viewrequests.asp?action=updateworkshop" method="Post">
<input type="hidden" name="WORKSHOP_ID" value="10">
<input type="hidden" name="REQUEST_ID" value="817">
<tr>
<td width="53%">Assign iPos Number</td>
<td width="17%"><input name="WORKSHOP_IPOSNUMBER" type="text" id="WORKSHOP_IPOSNUMBER" value="fdsfdsf"></td>
<td width="17%"><input type="submit" name="wssubmit" value="Save"></td>
<td><input type="checkbox" name="WORKSHOP_IPOS" value="checkbox" checked></td>
</tr>
<tr>
<td colspan="3">Sent Performer Confirmation</td>
<td><input type="checkbox" name="WORKSHOP_SENTPERFORMERCONF" value="True" onClick="document.wsform.submit();" ></td>
</tr>
<tr>
<td colspan="3">Sent Promoter Confirmation</td>
<td><input type="checkbox" name="WORKSHOP_SENTPROMOTERCONF" value="True" onClick="document.wsform.submit();" ></td>
</tr>
<tr>
<td colspan="3">Printed Performer Report Form</td>
<td><input type="checkbox" name="WORKSHOP_PRINTEDPERFORMERREPORT" value="True" onClick="document.wsform.submit();" ></td>
</tr>
<tr>
<td colspan="3">Printed Promoter Report Form</td>
<td><input type="checkbox" name="WORKSHOP_PRINTEDPROMOTERREPORT" value="True" onClick="document.wsform.submit();" ></td>
</tr>
</form>
Many thanks in advance
Nick
Nick (Webmaster)