PHP2Go Javascript Framework

Class Event

Object
   |
   +--Event

class 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

char

String char()

element

Object element()

findElement

Object findElement(<String> tag)

isRelated

Boolean isRelated(<Object> elm)

key

Number key()

position

Object position()

stop

void stop()

addListener

<static> void addListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)

addLoadListener

<static> void addLoadListener(<Function> fn)

extend

<static> Event extend()

fire

<static> void fire(<Object> elm, <String> type)

onDOMReady

<static> void onDOMReady(<Function> fn)

removeListener

<static> void removeListener(<Object> elm, <String> type, <Function> fn, <Boolean> capt)

PHP2Go Javascript Framework

Copyright © 2002-2006 by Marcos Pont
Documentation generated by JSDoc on Sun Oct 7 19:52:10 2007