Parsing values between HTML and vbscript
I would like to setup a form in HTML which contains input boxes I would like to parse values to and from these boxes into the embedded vbscript - can someone show me an example of how to do this. Many thanks.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
WiseUser
19 years ago
You need to read up on HTML and the IE DOM - Here's a basic example.
<INPUT TYPE=text VALUE="" NAME="textbox" SIZE=15>
<button onclick="sReadTextBoxVal()">Read value of textbox</button>
<SCRIPT>
function sReadTextBoxVal()
{
alert(textbox.value)
textbox.value = "Whatever you like"
alert(textbox.value)
}
</SCRIPT>
<button onclick="sReadTextBoxVal()">Read value of textbox</button>
<SCRIPT>
function sReadTextBoxVal()
{
alert(textbox.value)
textbox.value = "Whatever you like"
alert(textbox.value)
}
</SCRIPT>
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.