[Phpfreechat-svn] SF.net SVN: phpfreechat: [1074] branches/pfc-comet/misc/comet-tests/iframe2
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-08-01 20:14:07
|
Revision: 1074 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1074&view=rev Author: kerphi Date: 2007-08-01 13:14:09 -0700 (Wed, 01 Aug 2007) Log Message: ----------- fix problems on IE7 Modified Paths: -------------- branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.class.php branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.js Modified: branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.class.php =================================================================== --- branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.class.php 2007-08-01 20:06:54 UTC (rev 1073) +++ branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.class.php 2007-08-01 20:14:09 UTC (rev 1074) @@ -97,4 +97,4 @@ } -?> \ No newline at end of file +?> Modified: branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.js =================================================================== --- branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.js 2007-08-01 20:06:54 UTC (rev 1073) +++ branches/pfc-comet/misc/comet-tests/iframe2/pfccomet.js 2007-08-01 20:14:09 UTC (rev 1074) @@ -35,7 +35,7 @@ { this._iframe = null; this._iframediv = null; - Event.observe(window, "unload", this._onUnload); + Event.observe(window, "unload", this._onDisconnect); if (navigator.appVersion.indexOf("MSIE") != -1) { @@ -48,7 +48,7 @@ this._iframe.close(); this._iframediv = this._iframe.createElement("div"); this._iframe.appendChild(this._iframediv); - this._iframe.parentWindow.comet = comet; + this._iframe.parentWindow.pfccomet = this; this._iframediv.innerHTML = '<iframe id="comet_iframe" src="' + this.url + '"></iframe>'; } else if (navigator.appVersion.indexOf("KHTML") != -1) { @@ -92,8 +92,10 @@ _onDisconnect: function() { - this._iframe.remove(); - this._onUnload(); + if (this._iframe) { + if (navigator.appVersion.indexOf("MSIE") == -1) { this._iframe.remove(); } + this._iframe = false; // release the iframe to prevent problems with IE when reloading the page + } this._isconnected = false; this.onDisconnect(this); }, @@ -103,12 +105,6 @@ this.onResponse(this,data); }, - _onUnload: function() { - if (this._iframe) { - this._iframe = false; // release the iframe to prevent problems with IE when reloading the page - } - }, - /** * User's callbacks */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |