I'm using Nevow 0.9.31. Have been struggling with catching the
onbeforeunload event for a couple of days. From the JS code in
Athena/__init__.js, it looks like the events 'onkeypress' and
'onbeforeunload' are handled pretty automatically; and by adding alerts to
their methods, I can verify that both are caught fine on Firefox.
However, on Internet Explorer - v 6.0.2800 on W2000, and 7.0.6000 on Vista
- neither of these 2 events is trapped.
Does anybody know whether this is a known problem with Athena on IE?
(A further observation - the Athena test files TestInit.js and TestWidget.js
both appear to have tests for onbeforeunload. Now, when I do 'nit
--port=9876 nevow' and press "Run Tests" in the browser, these files do not
seem to run. I don't understand too much of the interactive unit tests yet,
but I get a feeling that file livetest_athena.py would need to have a line
like "jsClass = u'Nevow.Test.." for these 2 files to be found and executed,
and it doesn't.)
Getting an answer to this would really save some time. If not, I'll go on
digging throught the sources - it's been educational so far :-)