Forums
View unanswered posts | View active topics It is currently Tue Jul 22, 2014 1:29 pm



Reply to topic  [ 3 posts ] 
 IE 7 Select Lists 
Author Message

Joined: Tue Oct 02, 2012 7:57 am
Posts: 11
Post 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:
Code:
      try {
        var shell = new ActiveXObject("WScript.Shell");
        if(shell) {
          shell.SendKeys("%{DOWN}");
        }
      } 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.


Mon Mar 25, 2013 8:36 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post 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


Mon Mar 25, 2013 9:08 am
Profile

Joined: Tue Oct 02, 2012 7:57 am
Posts: 11
Post Re: IE 7 Select Lists
nope, that was the first thing I tried.


Mon Mar 25, 2013 3:29 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.