RE: The close action seems not quite right for portal scenarios

I think that we need an info event and a cancellable event with a
default action for document level closes.
These would parallel HTML4/JavaScript onunload and onbeforeunload.

The onunload JavaScript handler cannot be cancelled, so that makes it an
informational.
Perhaps call it document-unload XML event, or check with DOM3 for an
existing event?
An HTML4/JavaScript page can have an onunload handler to shut down
server-side resources.
It's not clear when to shut it all down completely, but the browsers
must have worked this out already since they do have these handlers.  We
just have no access to them from XML Events.

The onbeforeunload JavaScript handler can be cancelled, so that makes it
an event with a default action of closing the document.
Perhaps it would be the document-close XML event or check with DOM3 for
an existing event?
An HTML4/JavaScript can have an onbeforeunload handler to query the user
and either allow or cancel the event based directly on the users's
response.  The form of the dialog is fixed by the user agents in
HTML4/JavaScript.
We would probably use XForms 1.1 conditional @cancel operations to do
this, along with the XForms 1.1 confirm action.
We would need to work through the points of control to make sure that
the pieces (event handling, event cancellation, confirmation, @if,
@cancel) do provide the chain of control necessary to do this.

Leigh.

Received on Wednesday, 1 November 2006 18:28:07 UTC