IE6 is a buggy browser which takes much longer to do computation and
get the values from HTML elements etc.  When you pop up an alert box
you actually break the running of the script and give IE6 a chance to
pull itself ( and the values) together. This is why it works properly
then, I think.
Why don't you put the evaluation part in a separate function within
the scope of handleVehiclesClick and call it with some delay (100ms)
to decide what and how many option elements  to select?



function evaluateValue(val){
if (val != 'All vehicles') {
$('vehicles-select-all').selected = false;
} else if(val != '') {
$$('.vehicles-options').each(function(e){
e.selected = true;
};

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to