On Wed, May 7, 2008 at 12:49 PM, Tristan Seligmann <[EMAIL PROTECTED]>
wrote:
> I haven't yet had the chance to track this down, so by all means, go
>
Tristan,
Just a minor cosmetic touch to my previous fix. Shouldn't make any visible
difference, but makes the code look slightly less IE-centric.
------------------ Nevow/Athena/__init__.js (2 additions)
--------------------------
Nevow.Athena.Widget._initialize = function() {
Divmod.debug("widget", "Instantiating live widgets");
Nevow.Athena.Widget._pageLoaded = true;
// With the next line, sendCloseMessage will get called in IE. // Harald
Divmod.Base.addUnLoadEvent(Nevow.Athena.page.deliveryChannel); // Harald
Nevow.Athena.Widget._instantiateWidgets();
Divmod.debug("widget", "Finished instantiating live widgets");
};
Nevow.Athena.bootstrap = function (pageClassName, clientID) {
var self = this;
var pageClass = Divmod.namedAny(pageClassName);
self.page = pageClass(clientID, Nevow.Athena._createMessageDelivery);
Nevow.Athena.page = self.page; // Harald
self.page.bindEvents(window);
.....
------------------ Divmod/Base.js (1 added function at the end)
--------------------------
Divmod.Base.addUnLoadEvent = function(channel) {
/***
Harald's desperate try to get IE page refresh to work...
***/
if (window.attachEvent)
window.attachEvent("onunload", function (e)
{channel.sendCloseMessage();});
};
Divmod.Base.jsonRegistry = Divmod.Base.AdapterRegistry();
Have you had a chance to try it?
Harald
_______________________________________________
Twisted-web mailing list
[email protected]
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web