Skip to main content

ie6 Jquery Select Labels and IE6

Yes if you have to do it theres this sinppet that resolves an Ie6 bug wherein the selectLabels do not hold their values when clicked from their corresponding label.

More Here: http://support.microsoft.com/kb/314279

 function ie6(){  
  return jQuery.browser.msie && /msie 6\.0/i.test(navigator.userAgent);  
 }  
 function fixIe6SelectLabel(){  
  if(ie6()){  
   jQuery('select').bind({  
    focusin: function(event) {  
     try {  
     var eSrc = event.target;  
     if ( eSrc ) eSrc.tmpIndex = eSrc.selectedIndex;  
     } catch(e) {}  
    },  
    focus: function(event) {  
     try {  
    var eSrc = event.target;  
    if ( eSrc ) eSrc.selectedIndex = eSrc.tmpIndex;  
    } catch(e) {}  
    }  
   });  
  }  
 }  

Comments

Popular posts from this blog

ActionController::Live rails 4 Nginx passenger and redis

This is the most common setup for rails applications and most straightforward solution for SSE aka server side events.



In order to get SSE to work using redis we just use Ajax to respond to publish events based on json fields being present but you can even send a pure data payload: