M
Mark
Hi,
I'm kinda new at this, so this may be a dumb question.
I have a simple page with drop-down and a button. I loaded the drop-down
with strings, and gave each item a value that is a page name. I want the
user to select an item and click the button, and then, in VBScript, open the
page they selected in a new window.
The HTM/VBScript I have is below. When I click the button, I get the error
message "Error 424" (object required).
1) How do I access the Value of the drop-down (the page to open) when the
button is clicked?
BTW, the file "_private/form_results.txt" never gets written to.
2) How do I open the page in new IE window?
Thanks for any help ....
Mark
<p>Select an article from the drop-down, and then click the <b>Display</b>
button to view that article.</p>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="_private/form_results.txt"
s-format="TEXT/TSV" s-label-fields="FALSE" b-reverse-chronology="FALSE"
s-builtin-fields -->
<p><select size="1" name="cboArticles">
<option value="MakeTime.htm" selected>Make Time for Down Time</option>
<option value="Sibling Rivalry.htm">Traveling Tip: Sibling
Rivalry</option>
<option value="OnStage.htm">On Stage</option>
<option value="GiftListening.htm">The Gift of Listening</option>
<option value="TimesTell.htm">How Many Times Do I Have To Tell
You??</option>
<option value="LayersIce.htm">Layers of Ice (Vol. 1/ Issue 1,
January-2003)</option>
<option value="ParentingEd4All.htm">Parenting Education is for Everyone
(Vol. 1/ Issue 1, January-2003)</option>
</select><input type="button" value="Display" name="btnDisplay"></p>
</form>
<script language="VBScript">
<!--
Sub btnDisplay_onClick
On Error Resume Next
MsgBox cboArticles.Value
If Err <> 0 then MsgBox "Error " & Err & " occurred:" & vbcrlf & Error
End Sub
-->
</script>
I'm kinda new at this, so this may be a dumb question.
I have a simple page with drop-down and a button. I loaded the drop-down
with strings, and gave each item a value that is a page name. I want the
user to select an item and click the button, and then, in VBScript, open the
page they selected in a new window.
The HTM/VBScript I have is below. When I click the button, I get the error
message "Error 424" (object required).
1) How do I access the Value of the drop-down (the page to open) when the
button is clicked?
BTW, the file "_private/form_results.txt" never gets written to.
2) How do I open the page in new IE window?
Thanks for any help ....
Mark
<p>Select an article from the drop-down, and then click the <b>Display</b>
button to view that article.</p>
<form method="POST" action="--WEBBOT-SELF--">
<!--webbot bot="SaveResults" u-file="_private/form_results.txt"
s-format="TEXT/TSV" s-label-fields="FALSE" b-reverse-chronology="FALSE"
s-builtin-fields -->
<p><select size="1" name="cboArticles">
<option value="MakeTime.htm" selected>Make Time for Down Time</option>
<option value="Sibling Rivalry.htm">Traveling Tip: Sibling
Rivalry</option>
<option value="OnStage.htm">On Stage</option>
<option value="GiftListening.htm">The Gift of Listening</option>
<option value="TimesTell.htm">How Many Times Do I Have To Tell
You??</option>
<option value="LayersIce.htm">Layers of Ice (Vol. 1/ Issue 1,
January-2003)</option>
<option value="ParentingEd4All.htm">Parenting Education is for Everyone
(Vol. 1/ Issue 1, January-2003)</option>
</select><input type="button" value="Display" name="btnDisplay"></p>
</form>
<script language="VBScript">
<!--
Sub btnDisplay_onClick
On Error Resume Next
MsgBox cboArticles.Value
If Err <> 0 then MsgBox "Error " & Err & " occurred:" & vbcrlf & Error
End Sub
-->
</script>