CSS3 PIE Forums

IE 7 Select Lists
Page 1 of 1

Author:  Ixonal [ Mon Mar 25, 2013 8:36 am ]
Post subject:  IE 7 Select Lists

So in IE 7 mode, select lists won't open their dropdown part when you click on the the first time (when they are not yet focussed), but will if you click on them while they're focussed. Really weird. I'm guessing the behavior is reapplied and the element is re-focussed, but as you can't open a drop-down list through script, the element is only focussed. I did some digging and found a method you could use to make it function normally. If you get a focus on a select list and the user is using IE7, run this:
      try {
        var shell = new ActiveXObject("WScript.Shell");
        if(shell) {
      } catch(e) { }

This should trick IE into recognizing Alt+down, which is the shortcut to open the dropdown menu in IE. Of course, this is also dependant on the user allowing active x objects...

Edit: Actually, it may be better to do it on mousedown instead of focus, and then test against a focus state. This way, tabbing won't open the dropdown list, but clicking still can.

Author:  jason [ Mon Mar 25, 2013 9:08 am ]
Post subject:  Re: IE 7 Select Lists

Does setting -pie-track-active:false and/or -pie-track-hover:false help perhaps? http://css3pie.com/documentation/suppor ... rack-hover

Author:  Ixonal [ Mon Mar 25, 2013 3:29 pm ]
Post subject:  Re: IE 7 Select Lists

nope, that was the first thing I tried.

Page 1 of 1 All times are UTC - 7 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group