Revision of Route from Sun, 06/25/2017 - 09:17
Submitted by Leonard Daly on Sun, 06/25/2017 - 09:16
Route : XSeen {
SFString
[]
source
ID value
SFString
[]
event
Event name
SFString
[]
destination
ID value
SFString
[]
field
Field name
}
The Route node establishes an event handlig mechanism between the identified source and evet type to the specified destination. All events handled with Route shall be DOM events, but they need not be DOM-defined events - custom events may be used. The event source is specified by the value of the id attribute. [Note: potentially expand to any unique node reference or even multiple node references. Multiple node references creates multiple event handlers.] The event name (or type) must also be specified (DOM requirement).
The destination node/tag is specified by the value of the id attribute (see note for source), along with the field in the node to receive the event.
Future note
- Allow the source to specify any unique node via class, ID, and node name.
- Allow source to specify a collection of nodes. An event handler would be created for each one
- Allow desination to specify any unique node
- Allow destination to specify a collection of nodes. A listener would be established for each destination node.
- Allow developer to specify a custom event handler (JavaScript code) that processes the event prior to passing it to the node's field's event handler.