Events



load

This event will be fired when a new document is being loaded.

unload

This event will be fired when a document is being closed.

XopusAfterAttrInserted

This event will be fired after an attribute was added to the target element of this event.

XopusAfterAttrRemoved

This event will be fired after an attribute was removed from the target element of this event.

XopusAfterChildInserted

This event will be fired after a node was inserted in the target node of this event.

XopusAfterChildRemoved

This event will be fired after a node was removed from the target node of this event.

XopusAfterNodeCreated

This event will be fired after a new node was created by the target document of this event.

XopusAfterNodeMerged

This event will be fired after a node was merged with the target node of this event.

XopusAfterNodeMoved

This event will be fired after the target of this event was moved.

XopusAfterNodeSplit

This event will be fired after the target of this event was split in two nodes.

XopusAfterNodeValueModified

This event will be fired after the value of the target of this event was changed.

XopusAfterSubtreeModified

This event will be fired after a descendant of the target of this event was changed.

XopusBeforeAttrInserted

This event will be fired before an attribute will be added to the target element of this event.

XopusBeforeAttrRemoved

This event will be fired before an attribute will be removed from the target element of this event.

XopusBeforeChildInserted

This event will be fired before a node will be inserted in the target node of this event.

XopusBeforeChildRemoved

This event will be fired before a node will be removed from the target node of this event.

XopusBeforeNodeCreated

This event will be fired before a node will be created by the target document of this event.

XopusBeforeNodeMerged

This event will be fired before a node will be merged with the target node of this event.

XopusBeforeNodeMoved

This event will be fired before the target node of this event will be moved.

XopusBeforeNodeSplit

This event will be fired before the target node of this event will be split at the given index.

XopusBeforeNodeValueModified

This event will be fired before the value of the target node of this event will be changed.

XopusBeforeSubtreeModified

This event will be fired before a descendant or the target node of this event will be changed.

XopusNodeInsertedIntoDocument

This event will be fired when the target node of this event will be connected to the DOM tree. This event will be fired for all descendants of an orphan subtree that is added to the DOM.

XopusNodeRemovedFromDocument

This event will be fired when the target node of this event will be disconnected from the DOM tree. This event will be fired for all descendants of the subtree that is removed from the DOM.

Related Topics


TitleDescription
Use EventsUsing events from the Xopus API is a great way to get more control over the XML, and to assist users in an even better way. It takes some knowledge of Javascript, and a slight understanding of the API to work with it, but very nice things can be done with it.