Hi
I have select box and onchange of this selectbox, in javascript function to which I pass optionid, I run
<cfwddx action="cfml2js" input="#Getvalue#" toplevelvariable="options">
Getvalue is a query which selects all the options and using wddxRecordset_findValue in javascript, I get the corresponding records and populate another selectbox.
Then I have div in my code which are hidden and displyed depending on the events.
Works well. But after I hit submit button and then I hit back browser button to come back to same page, first selectbox retains the value I have picked up before but the second select box values are lost.
The reason is that second select box is created on OnChange event of firstone and on onChnage event of second select box, certain div are made visible. so everything is lost except first selectbox.
Any way I can retain all the setting if I hit back button?
Any help is appreciated.
Thanks
I have select box and onchange of this selectbox, in javascript function to which I pass optionid, I run
<cfwddx action="cfml2js" input="#Getvalue#" toplevelvariable="options">
Getvalue is a query which selects all the options and using wddxRecordset_findValue in javascript, I get the corresponding records and populate another selectbox.
Then I have div in my code which are hidden and displyed depending on the events.
Works well. But after I hit submit button and then I hit back browser button to come back to same page, first selectbox retains the value I have picked up before but the second select box values are lost.
The reason is that second select box is created on OnChange event of firstone and on onChnage event of second select box, certain div are made visible. so everything is lost except first selectbox.
Any way I can retain all the setting if I hit back button?
Any help is appreciated.
Thanks