I use script described here for making dynamic selectboxes (user selects something in the first box, then the options in the second box change automatically).
There was tiny problem - after form submitting was selected first option in right selectmenu (although there was selected=“selected” on other option). I fixed it almost , now it works with Firefox and Opera 8, but i noticed that with IE 6 it works only when there was called alert() function
I tested with 3 computers and all failed (all OSes was windows xp (sp1, sp2 and no sp) with IE v6)… was there selected “#estonian” on right dropdown menu?
Sorry, I misunderstood the problem. I thought you meant the channel select didn’t change with changes to the server select.
So, no, it doesn’t work in IE.
I’m curious, if you temporarily hard code the alert (instead of having PHP conditionally echo it), is the behaviour the same? (my guess is yes, I’m just curious)
It must have something to do with the way browsers handle clones, memory, page rendering and onload events.
I notice that “estonian” doesn’t happen until after the alert is closed.
Currently the alert is accessing a DOM value. Does it still behave the same if you simply alert text? eg
Well pragmatically that is a good solution. Whether it’s a matter of loading or memory threading or whatever, we may never know. But until (if ever) IE gets up to standards, it’s good to find work-arounds, no matter how cludgy. Thank you for posting your fix.