G
Guest
Hi all,
I am currently writing an application involving html and vbscript. I am
building a simple html page for data acquisition, and utilize vbscript to
retrieve the data for further calculation (This html page is not posted on
web and only used on another software program). When I am dealing with html
radio button, I couldn't find a way to retrieve the "value" property of the
selected button during run time. Below are code that I use.
*****vbscript code*******
Sub OnOk() '// When click OK button, I try to retrieve "value" of selected
radio button
Dim sResult
sResult = rButtonGroup1.value '//At run time, error rappears at this line
window.returnValue = sResult
window.close
End Sub
********html code, 2 radio button*******
<input type="radio" value="V1" name="rButtonGroup1">
<input type="radio" value="V2" name="rButtonGroup1">
When I issue the OK button, error message "object does not support this
method or property" 'rButtonGroup1.value' appears. While I expect
"rButtonGroup.value" should return either value V1 or V2. Can anyone give me
some advice about this?
Thanks for your kind attention
Schuey
I am currently writing an application involving html and vbscript. I am
building a simple html page for data acquisition, and utilize vbscript to
retrieve the data for further calculation (This html page is not posted on
web and only used on another software program). When I am dealing with html
radio button, I couldn't find a way to retrieve the "value" property of the
selected button during run time. Below are code that I use.
*****vbscript code*******
Sub OnOk() '// When click OK button, I try to retrieve "value" of selected
radio button
Dim sResult
sResult = rButtonGroup1.value '//At run time, error rappears at this line
window.returnValue = sResult
window.close
End Sub
********html code, 2 radio button*******
<input type="radio" value="V1" name="rButtonGroup1">
<input type="radio" value="V2" name="rButtonGroup1">
When I issue the OK button, error message "object does not support this
method or property" 'rButtonGroup1.value' appears. While I expect
"rButtonGroup.value" should return either value V1 or V2. Can anyone give me
some advice about this?
Thanks for your kind attention
Schuey