Cross domain issue patch for old ie browsers (<=7)

This commit is contained in:
Edil Kratskih
2011-12-21 13:18:57 +06:00
parent 04cb79a528
commit 32b2f28ba9

View File

@@ -758,7 +758,12 @@
var docMode = document.documentMode;
var oldIE = (isExplorer.exec(navigator.userAgent.toLowerCase()) && (!docMode || docMode <= 7));
if (oldIE) {
this.iframe = $('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo('body')[0].contentWindow;
var history = this;
var src = 'javascript:document.open();document.domain="' + document.domain + '";document.close();';
var frame = $('<iframe></iframe>').attr('src', src).hide().bind('load', function() {
history.frame = frame.contentWindow;
}).appendTo('body');
this.navigate(fragment);
}