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 != '') {
e.selected = true;

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to