|
|
|
|
|
| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Re: Dynamic forms |
From: |
peter |
Date: |
10/8/2002 12:17:15 PM |
IP: |
193.128.179.161 |
Your form tag should be something like
<form method="get" name="jumpbox" action="youraspfile.asp" onSubmit="if(document.jumpbox.f.value == -1){return false;}">
make your listbox (in this case calling it f)
<select name="f" onChange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }">
<option value="-1">Select a whatever</option>
<option value="-1"> </option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
When they select something in the listbox which doesnt have a value of -1 - it will call the asp file. Get the asp file to retreive the listbox value and then build the corresponding listbox based on that. |
Previous Message
|
|
|
|
|
|
|
|
|
|
|
|