PDA

View Full Version : Dropdown combo bug?


jkgtnp
06-25-2001, 10:05 AM
Hello!

I downloaded the drop-down combo script (found in http://www.a1javascripts.com/form_navigation/doublecombo/doublecombo.html) and am having problems.

This has two drop-downs: the first containing a list of menus, and the seconds drop-down containing the sub-menus of the first drop-down list.

Say I select the second or third menu within the first-drop down, and select any corresponding sub-menu for it in the second-drop down, I then jump properly to the corresponding url. So far so good.

Now when I hit my Backspace key, or click on the browser's back button, I then go back to my drop-downs. But something's wrong: while the first drop-down will still show the second or third menu option, the second drop-down now shows the first option of the first menu option for the first-drop down.

This happens with IE5.5, but in Netscape 4.76 it worked fine.

Any ideas?

Dave Swift
06-25-2001, 12:25 PM
Originally posted by jkgtnp
This happens with IE5.5, but in Netscape 4.76 it worked fine.

Something works in Netscape but not with IE? Strange.

(But then it's strange that anything at all works in Netscape)

jkgtnp
06-25-2001, 01:36 PM
I know! That's exactly what went through my mind ... :)

Hope someone could resolve this issue and get it to work with IE.

kdjoergensen
06-25-2001, 04:59 PM
You can get around this by adding following in your page (after the form holding the drop down menus):

<script language="javascript">
document.formName.selectName.reset();
</script>

If the visitor clicks the browsers back button the form will be reset.

jkgtnp
06-25-2001, 05:27 PM
Thanks ... I'll give that a try!

James :)