|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Hello,
When I build the page i want to 'check' the radio buttons if they have values passed to it from another subroutine. I have the radio button value SAC76SWJCCUSTODY stored in a hidden value SAC76SWJCCUSTODY1. The disableGroup() function works perfectly fine if not put into the dynamic call. I displayed the passed parameters and it gives 'this.form' as undefined. Please help !!! <td width="11%"> <strong><font size="2">Yes</font></strong> <script language="JavaScript"> if (eligform.SAC76SWJCCUSTODY1.value == 'y'){ document.write('<input type="radio" name="SAC76SWJCCUSTODY"'); document.write(' value="y" checked '); document.write('OnClick="disableGroup('); document.write('this.form\',SAC76SWJCIVECONTRACT,t rue\')">'); else { document.write('<input type="radio" name="SAC76SWJCCUSTODY"'); document.write(' value="y" '); document.write('OnClick="disableGroup('); document.write('this.form \',SAC76SWJCIVECONTRACT,true\')">'); </script> </td> <td width="11%"> |
|
#2
|
||||
|
||||
|
You should never write critical page elements using Javascript. There are many reasons for this, primarily it's so that people that don't have JS enabled still get full functionality.
Do you have any experience using server-side languages, as this would be the preferred method to achiev your goal. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Passing radio button values back .. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|