开发者

IE 8 (ONLY) crashes with JavaScript / jQuery calls to plugins

I'm in need of some help.

I'm building a te开发者_如何学Cam bio page it keeps crashing IE8 when I call jQuery plugins.

I'm not sure what is going on and can't even run the IE debugger because it crashes so hard.

Any IE8 / jQuery experts out there willing to take a look and offer some help?

Here is the main team page. Clicking through to any of the links causes the crash in IE8.

I am using: jQuery Tagsphere, AnythingSlider, and jQuery Cycle.

Thanks in advance for any insight into this.


I had a similar problem, most notably closing iframes with IE8. Stumbled across the following code in jquery-1.6.2, which was intended to solve problems with document.domain. Some comments on the web lead me to believe this was a recent problem. Dropped back to jquery-1.4.4 and the problem was resolved.

CODE SEGMENT FROM JQUERY-1.6.2 FOLLOWS:

// #8138, IE may throw an exception when accessing
// a field from window.location if document.domain has been set
try {
ajaxLocation = location.href;
} catch( e ) {
// Use the href attribute of an A element
// since IE will modify it given document.location
ajaxLocation = document.createElement( "a" );
ajaxLocation.href = "";
ajaxLocation = ajaxLocation.href;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜