Click to See Complete Forum and Search --> : Changing the value of radio buttons


James B
11-24-2002, 11:18 AM
Hi,

when I select one of the radio buttons on my page, it should dynamically change the value of another radio button further down the page.
Also, when I select a certain radio button, it should popup some sort of inputbox to provide further information.
Can this be done within one form, so I don't have to do it step by step, and form by form?

Any suggestions?

James

James B
11-25-2002, 02:04 AM
Dave,

this is my HTML code:
---------------------------------------------------------------
<table border="0" width="100%">
<tr>
<td width="33%" align="center"><input type="radio" value="blank" checked name="kleur">Blank</td>
<td width="33%" align="center"><input type="radio" name="kleur" value="zwart">Zwart</td>
<td width="34%" align="center"><input type="radio" name="kleur" value="RAL">RAL</td>
</tr>
</table>
<table border="0" width="100%">
<tr>
<td width="33%" align="center"><input type="radio" value="para" checked name="aansluiting">para</td>
<td width="33%" align="center"><input type="radio" name="aansluiting" value="conc80">conc80</td>
<td width="34%" align="center"><input type="radio" name="aansluiting" value="conc60">conc60</td>
</tr>
</table>
<table border="0" width="100%">
<tr>
<td width="33%" align="center"><input type="radio" value="gesloten" checked name="condens">Gesloten</td>
<td width="33%" align="center"><input type="radio" name="condens" value="condens">Condenserend</td>
</tr>
</table>
------------------------------------------------------------------

Now, when I check radio button 'conc80' , the value for 'condens' should change to 'open' , so that when I get to that part of the page, and I check that button, it should pass 'open' as its value instead of 'condens'


James

James B
11-26-2002, 09:15 AM
Dave,

thanks for your answers. Changing the value of the radio button works fine now (I guess there's no way to change the associated text?)
With regards to the first part of my question, getting a popup that asks for more info, how can the added info be stored in a variable for further use?
I've tried 'reading' the AddedInfo , but that does'nt seem to work.

Checked out your website too. You've really done about anything with all sorts of computers....

Thanks,
James

James B
11-27-2002, 02:27 AM
Dave,

no, I've tried all variations on capitals.
I have tried doing :

application("ralkleur")=request.form("addedInfo")
or
application("ralkleur")=request.form('addedInfo')
or
application("ralkleur")=request.form(addedInfo)
or in the form page itself:
application("ralkleur")=addedInfo
application("ralkleur")='addedInfo'
application("ralkleur")="addedInfo"

??????????????????

James