PDA

View Full Version : Vanishing Options


optimum
07-12-2002, 07:23 PM
Can someone please tell me how to stop my options from reverting back to the original value. I am using this procedure in a page and when you click on Renew you get a list of values and when you click on Enroll you get a different set of values.

http://home.earthlink.net/~optimum/ccprctest.htm

On the original page, after you press the submit button if there are any errors, I show the errors on a page then send the user back to the original page using a history.go(-1). When I do this,
the values have reset to the original statement.

Thanks for any help.

Soldier Bob
07-13-2002, 05:25 AM
history.back();


I am not sure why the radio buttons are resetting, but you could try this instead of history.go(-1);

I would also press the back button and see if the radio buttons reset with that.

I could only think that more then just the radio buttons would be getting reset if a refesh got called.

otherwise perhaps you have code running on a onload event to reset the form?

-S. Bob

optimum
07-15-2002, 02:21 PM
After clicking on this link:

http://home.earthlink.net/~optimum/ccprctest.htm

Enter www.javascriptkit.com, then use the back key.

The values will have changed!

Does anyone know why?

Thanks
:confused: