Sabine Teubner
2014-05-14 08:47:50 UTC
Dear all
In one of my models I am trying to respond to the xforms-model-destruct event. For starters I just tried to display a message when the event is dispatched:
<xforms:model …>
...
<xforms:message level="modal" ev:event="xforms-model-destruct">
xforms-model-destruct dispatched
</xforms:message>
</xforms:model>
However, the message is never displayed. Am I wrong in assuming that the event is dispatched „automatically“, just as for example xforms-ready? If it is not, is there a way that I can dispatch the event when the user tries to close/leave the web page for which the model was constructed?
Thanks and best wishes
Sabine
--
Sabine Teubner, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22
In one of my models I am trying to respond to the xforms-model-destruct event. For starters I just tried to display a message when the event is dispatched:
<xforms:model …>
...
<xforms:message level="modal" ev:event="xforms-model-destruct">
xforms-model-destruct dispatched
</xforms:message>
</xforms:model>
However, the message is never displayed. Am I wrong in assuming that the event is dispatched „automatically“, just as for example xforms-ready? If it is not, is there a way that I can dispatch the event when the user tries to close/leave the web page for which the model was constructed?
Thanks and best wishes
Sabine
--
Sabine Teubner, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
| Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22