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
I would do something like this: window.onload = LoadDefaults(<% Session("rdaspiration") %>); function LoadDefaults(rdaspiration) { if (rdaspiration == "yes" ) { show("hideable1") } else {show("hideable2") } } I think something like that should work. I didn't try it in a browser so the syntax may not be correct but the general idea should work. "Half this game is ninety percent mental." - Yogi Berra