--- a/webinterface.js Thu Aug 13 11:48:55 2009 +0200
+++ b/webinterface.js Fri Aug 14 16:26:19 2009 +0200
@@ -1,5 +1,9 @@
// import Nevow.Athena
+function init() {
+ Nevow.Athena.Widget.fromAthenaID(1).callRemote('HMIexec', 'HMIinitialisation');
+}
+
WebInterface.PLC = Nevow.Athena.Widget.subclass('WebInterface.PLC');
WebInterface.PLC.method(
'updateHMI',
@@ -12,6 +16,9 @@
function childAdded(widget) {
var node = self.nodeById('content');
node.replaceChild(widget.node, node.getElementsByTagName('div')[0]);
+ init();
});
});
- });
\ No newline at end of file
+ });
+
+Divmod.Base.addLoadEvent(init);
\ No newline at end of file