Hi !
-
I have a web page, where after the users enters the data, they should be able to go back and modify data on all the pages. I am using ASP and VBSCript. I am using session variables and getting all the data, into the controls for modifying, but there is a page, which it has a radio button "yes" and "no", if you click yes, it shows more controls. now, my question is when they come back to modify data and if the session values is yes, it is checked yes, but how shall I show the other controls without clicking on the radio buttons, or how to call the click event within the VBScript. I need to call the "show('hideable1') method from VBScript if, the session value is yes.... Thanx, abhi example code.... onClick="show('hideable1')" name="radio_aspiration" value="yes" '<%if Session("rdaspiration") = "yes" then %>' checked '<%end if%>'> yes ' checked '<%end if%>'> no abhi
-
I have a web page, where after the users enters the data, they should be able to go back and modify data on all the pages. I am using ASP and VBSCript. I am using session variables and getting all the data, into the controls for modifying, but there is a page, which it has a radio button "yes" and "no", if you click yes, it shows more controls. now, my question is when they come back to modify data and if the session values is yes, it is checked yes, but how shall I show the other controls without clicking on the radio buttons, or how to call the click event within the VBScript. I need to call the "show('hideable1') method from VBScript if, the session value is yes.... Thanx, abhi example code.... onClick="show('hideable1')" name="radio_aspiration" value="yes" '<%if Session("rdaspiration") = "yes" then %>' checked '<%end if%>'> yes ' checked '<%end if%>'> no abhi
you can make another funciton and call it on loading the page e.g. her is the javascript code, you can esily change it to vb script: (for easy access I'll suggest you to add ID to each radio button as and function showHide() { if(document.getElementById('rbYes').checked) show('hideable'); else if(document.getElementById('rbNo').checked) hide('hideable'); } and call this onload of body as ... -----