rayantony / jixedbar

Automatically exported from code.google.com/p/jixedbar
GNU General Public License v2.0
0 stars 0 forks source link

ie8 as ie7 detection: here's the fix #47

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Place this function:

        if($.browser.msie){
            function getIEVersion()
            {
                var rv = -1; // Return value assumes failure.
                if (navigator.appName == 'Microsoft Internet Explorer'){
                    var ua = navigator.userAgent;
                    var re  = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
                    if (re.exec(ua) != null)
                    rv = parseFloat( RegExp.$1 );
                }
                return rv;
            }
            var msieVersion=getIEVersion();
        }

Replace each occurrence of

($.browser.msie && ie6) and ($.browser.msie && ie7)

with

($.browser.msie && msieVersion==6) and ($.browser.msie && msieVersion==7)

Original issue reported on code.google.com by screamda...@gmail.com on 24 Nov 2010 at 2:07

GoogleCodeExporter commented 9 years ago
Thank you, working perfectly. Please include this fix in the next version and 
remove the now obsolete ie6 and ie7 vars.

Original comment by waidner.chris on 1 Dec 2010 at 10:18

GoogleCodeExporter commented 9 years ago
Hi,
but the function where the position it exactly?

Original comment by spider...@gmail.com on 7 Dec 2010 at 6:03