Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
142 views
in Technique[技术] by (71.8m points)

internet explorer 7 - IE7 jQuery 1.9.1 issues

In only IE7, the script error message shows-up in the status bar, which cripples the UI. For example, if I click on any of the anchor tags, it doesn't work. By the way, this script error location and callstack was taken using the Web Development Helper for IE7.

If I include jquery-1.9.1.min.js, in IE7 I see the following script error messages:

at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    wt
    code: if(t=i.find.ID(u.matches[0].replace(et,tt),t)[0],!t) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    st
    code: return wt(e.replace(W,"$1"),t,n,r) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [4]
    JScript anonymous function
    code: b.find(e,this[t],n) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e) at http://10.15.1.77:8080/mhs/3p/jquery-migrate-1.1.1.min.js [2]
    JScript anonymous function
    code: return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return new b.fn.init(e,t,r) at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        }) at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents() at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools() at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: if(u[a].apply(t[0],t[1])===!1&&e.stopOnFalse) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: return t=t||[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: b.isReady=!0,e!==!0&&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off("ready")) at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.min.js [3]
    JScript anonymous function
    code: (o.addEventListener||"load"===e.type||"complete"===o.readyState)&&(q(),b.ready())

If I include jquery-1.9.1.js, in IE7 I see the following script error messages:

at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [5472]
    select
    code: context = Expr.find["ID"]( token.matches[0].replace( runescape, funescape ), context )[0]
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [3998]
    Sizzle
    code: return select( selector.replace( rtrim, "$1" ), context, results, seed )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [5576]
    JScript anonymous function
    code: jQuery.find( selector, this[ i ], ret )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [196]
    JScript anonymous function
    code: return ( context || rootjQuery ).find( selector )
at http://10.15.1.77:8080/mhs/3p/jquery-migrate-1.1.1.min.js [2]
    JScript anonymous function
    code: return t&&"string"==typeof t&&!e.isPlainObject(n)&&(o=y.exec(t))&&o[1]&&("<"!==t.charAt(0)&&r("$(html) HTML strings must start with '<' character"),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(e.trim(t),n,!0),n,a):v.apply(this,arguments)
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [62]
    JScript anonymous function
    code: return new jQuery.fn.init( selector, context, rootjQuery )
at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        })
at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents()
at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools()
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1037]
    JScript anonymous function
    code: if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1148]
    JScript anonymous function
    code: fire( args )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [433]
    JScript anonymous function
    code: readyList.resolveWith( document, [ jQuery ] )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [103]
    JScript anonymous function
    code: jQuery.ready()
at http://10.15.1.77:8080/mhs/nwtTools.js [124]
    JScript anonymous function
    code: $("#IPL a").click(function()  {
            self.dropdownTools.hide();
        })
at http://10.15.1.77:8080/mhs/nwtTools.js [10]
    JScript anonymous function
    code: this.attachEvents()
at http://10.15.1.77:8080/mhs/nwtTools.js [270]
    JScript anonymous function
    code: var nwtTools = new NWTTools()
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1037]
    JScript anonymous function
    code: if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [1148]
    JScript anonymous function
    code: fire( args )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [433]
    JScript anonymous function
    code: readyList.resolveWith( document, [ jQuery ] )
at http://10.15.1.77:8080/mhs/3p/jquery-1.9.1.js [103]
    JScript anonymous function
    code: jQuery.ready()
See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I used jquery 1.7.2 for IE7 and jquery 1.9.1 for all the other browsers. It works fine now. Thanks to SpYk3HH.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...