I am a new VBscript programmer constructing a form and VBscript in a web page.
Here is part of a simple form:
<form name="whichOptions">
Perform which checks?<br>
<input type="checkbox" name="chkPropMode">Prop mode<br>
<input type="checkbox" name="chkDiffMode">Diff mode<br>
<input type="checkbox" name="chkAppleMode">Apple mode<br>
<input type="button" name="verify2" value="test prog"><br>
<input type="reset" value="clear selections">
</form>
And here is the script:
sub verify2_OnClick
document.write(whichOptions.ChkPropMode.checked)
document.write(whichOptions.ChkDiffMode.checked)
document.write(whichOptions.ChkAppleMode.checked)
end sub
When I run it (or versions in which I test the various checkbox statuses), the correct status of the first checkbox is written but then I get:
Error: doesn't support this property or method 'whichOptions'
Why?
Thanks in advance
Phil
Here is part of a simple form:
<form name="whichOptions">
Perform which checks?<br>
<input type="checkbox" name="chkPropMode">Prop mode<br>
<input type="checkbox" name="chkDiffMode">Diff mode<br>
<input type="checkbox" name="chkAppleMode">Apple mode<br>
<input type="button" name="verify2" value="test prog"><br>
<input type="reset" value="clear selections">
</form>
And here is the script:
sub verify2_OnClick
document.write(whichOptions.ChkPropMode.checked)
document.write(whichOptions.ChkDiffMode.checked)
document.write(whichOptions.ChkAppleMode.checked)
end sub
When I run it (or versions in which I test the various checkbox statuses), the correct status of the first checkbox is written but then I get:
Error: doesn't support this property or method 'whichOptions'
Why?
Thanks in advance
Phil