C
Chris Lieb
In a form, I have two select lists. One holds the available options.
I have some buttons between them for moving items from one list to the
other. When the form first loads, all of the items are in the
available list and none are in the used list.
Available Used
--------------- ---------------
|item1 | |item3 |
|item2 | >> | |
|item4 | > | |
| | < | |
| | << | |
| | | |
--------------- ---------------
When you move an item, I either add it to or remove it from a
comma-delimited list in a hidden input box. When the form is
submitted, I do fun things with the contents of the hidden input box to
make pretty output.
When you click the back button in Mozilla Firefox, You get the form
just as it was when you submitted it, which is good. However, when you
click the back button in IE, the two select list boxes display like
they would after a fresh page load. At the same time, instead of
defaulting to blank, the hidden input box retains its contents that it
had at the time of the form submision. This means that you can have
multiple instances of the same item in the hidden input box, which
reaks havok on my action page.
Does anyone know how to fix this problem in IE?
Thanks,
Chris Lieb
I have some buttons between them for moving items from one list to the
other. When the form first loads, all of the items are in the
available list and none are in the used list.
Available Used
--------------- ---------------
|item1 | |item3 |
|item2 | >> | |
|item4 | > | |
| | < | |
| | << | |
| | | |
--------------- ---------------
When you move an item, I either add it to or remove it from a
comma-delimited list in a hidden input box. When the form is
submitted, I do fun things with the contents of the hidden input box to
make pretty output.
When you click the back button in Mozilla Firefox, You get the form
just as it was when you submitted it, which is good. However, when you
click the back button in IE, the two select list boxes display like
they would after a fresh page load. At the same time, instead of
defaulting to blank, the hidden input box retains its contents that it
had at the time of the form submision. This means that you can have
multiple instances of the same item in the hidden input box, which
reaks havok on my action page.
Does anyone know how to fix this problem in IE?
Thanks,
Chris Lieb