Handler


Definition

A handler is the method that will receive the event from the dispatcher.

Diagram

handlers are referenced by URI 

There are currently two URI's supported: 

The default URI is implied if there are no script URI's specified, but must be included if there are script URI's included. This is because the order of calling the handlers can be important.

Script access to handlers

Register a handler

 var docElement = "#/1";
 var xptr = "#xpointer(hasdispatcher/onclick/hashandler/uri/s)";
 var at = "#xpointer(*/*/*/*/*)";

 var scriptURI = "script:diputreeOnClick();";

 var onclickHandler = diputree.bind(docElem,onclickHandler,at);
 diputree.setValue (onclickHandler, scriptURI );


diputree documentation © 2000 dipu