This solves the problem. One more thing to say is that apparently it has nothing to do with actual styling of a select element, since it was giving me same errors with different styles.
I'll definitely check what the problem is once I get more time on my hands...
Ryan,
It looks like IE (both 6 & 7) chokes when changing style of elements and throws "undefined is null or not an object".
The buggy lines are:
$$('select').invoke('setStyle',{visibility: 'hidden'}); $$('select').invoke('setStyle',{visibility: 'visible'});
I didn't dig too much into the problem but replaced invoke with each and direct styling.
$$('select').each(function(el){ el.style.visibility = "hidden" })
This solves the problem. One more thing to say is that apparently it has nothing to do with actual styling of a select element, since it was giving me same errors with different styles.
I'll definitely check what the problem is once I get more time on my hands...
Posted April 20th, 2007 at 2:30pm by kangax