A namespace object holding functions and members used to handle the events fired from the Jaxer Core into the Jaxer Framework.
Platform Support
Jaxer Server Framework | Jaxer Client Framework | 1.0 | no |
---|
Functions
![]() |
|||||||||||||||
Method | Action | Jaxer Server Framework | Jaxer Client Framework | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
static addHandler(String eventType, Function handlerFunction, [Function testFunction,] [Object handlerFunctionObject]) :
void
Bind a handler to the specified eventType.
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
|
|||||||||||||||
static clearHandlers(String eventType) :
void
Removes the handlers for the specified eventType.
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
|
|||||||||||||||
static fire(String eventType) :
void
Triggers the handlers for the specified eventType.
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
|
|||||||||||||||
static getEventNames() : Array
Returns a (copy of the) array of framework event names to which you can register handlers
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Returns
|
|||||||||||||||
static getHandlers(String eventType) : Array
Returns an array of handlers for the specified eventType.
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
Returns
|
|||||||||||||||
static isScriptEvaluateEnabled(Object scriptElement) : Boolean
Should the given script element be evaluated (server-side) by Jaxer Core rather than be handled separately by the Jaxer framework
or be ignored by Jaxer as far as evaluation goes. Note that if the script element has a src attribute then the framework will
inline a call to load the script from the src, and that's why this method returns a true in that case.
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
Returns
|
|||||||||||||||
static isScriptLoadEnabled(Object scriptElement) : Boolean
Should the given script element be loaded and evaluated (server-side) by the Jaxer framework
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
Returns
|
|||||||||||||||
static removeHandler(String eventType, Function handlerFunction) :
void
Remove an existing handler on an event type
(Advanced) |
Show Details | 1.0 | no | ||||||||||||
Parameters
|