|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Event
Defined in dom.js
| Method Summary | |
String
|
char()
Returns the typed char |
Object
|
element()
Returns the element that originated the event |
Object
|
findElement(<String> tag)
Finds a node with a given tag name starting from the event source element |
Boolean
|
isRelated(<Object> elm)
Determines if an event is related to a given element. |
Number
|
key()
Returns the typed key code |
Object
|
position()
Retrieve event position in the screen. |
void
|
stop()
Suspends the propagation of the event and cancel its default behaviour |
<static> void
|
addListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)
Adds an event handler function to a given element and event type |
<static> void
|
addLoadListener(<Function> fn)
Register a function to be executed when window.onload event is fired |
<static> Event
|
extend()
Extends an event object by adding properties and methods that are not available in the browser's engine |
<static> void
|
fire(<Object> elm, <String> type)
Runs all handlers of a given type on an element |
<static> void
|
onDOMReady(<Function> fn)
Register a function to be executed when the Document Object Model is available. |
<static> void
|
removeListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)
Removes an event handler from an element |
| Method Detail |
String char()
Object element()
Object findElement(<String> tag)
tag - Tag name
Boolean isRelated(<Object> elm)
elm - Element
Number key()
Object position()
void stop()
<static> void addListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)
elm - Element
type - Event type
fn - Handler function
capt - Use capture
<static> void addLoadListener(<Function> fn)
fn - Function to be executed
<static> Event extend()
ev - Event
<static> void fire(<Object> elm, <String> type)
elm - Element
type - Event type
<static> void onDOMReady(<Function> fn)
fn - Function to be executed
<static> void removeListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)
elm - Element
type - Event type
fn - Handler function
capt - Use capture
|
PHP2Go Javascript Framework | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||