Class DHTMLSuite.common
Object
|
+--DHTMLSuite.common
class
DHTMLSuite.common
A class containing common method used by one or more of the gui classes below, example: loadCSS. An object("DHTMLSuite.commonObj") of this class will always be available to the other classes.
Defined in menu-for-applications.js Author: Alf Magne Kalleland(www.dhtmlgoodies.com)Version: 1.0
Method Summary
void
addEvent (whichObject,eventType,functionName)
This function adds an event listener to an element on the page.
Object
cancelEvent ()
This function only returns false.
Object
getLeftPos (inputObj)
This method will return the left coordinate(pixel) of an object
Object
getTopPos (inputObj)
This method will return the top coordinate(pixel) of an object
void
init ()
This method initializes the DHTMLSuite_common object.
void
loadCSS (cssFileName)
This method loads a CSS file(Cascading Style Sheet) dynamically - i.e.
void
removeEvent (whichObject,eventType,functionName)
This function removes an event listener from an element on the page.
void
setCssCacheStatus (cssCacheStatus)
Specify if css files should be cached or not.
cssCacheStatus
Object cssCacheStatus
eventElements
Object eventElements
DHTMLSuite.common
DHTMLSuite.common ()
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)Version: 1.0
addEvent
void addEvent (whichObject,eventType,functionName)
This function adds an event listener to an element on the page.
Parameters:
functionName
- = Name of function to execute.
Object
- whichObject = Reference to HTML element(Which object to assigne the event)
String
- eventType = Which type of event, example "mousemove" or "mouseup"
cancelEvent
Object cancelEvent ()
This function only returns false. It is used to cancel selections and drag
getLeftPos
Object getLeftPos (inputObj)
This method will return the left coordinate(pixel) of an object
Parameters:
Object
- inputObj = Reference to HTML element
getTopPos
Object getTopPos (inputObj)
This method will return the top coordinate(pixel) of an object
Parameters:
Object
- inputObj = Reference to HTML element
init
void init ()
This method initializes the DHTMLSuite_common object.
loadCSS
void loadCSS (cssFileName)
This method loads a CSS file(Cascading Style Sheet) dynamically - i.e. an alternative to tag in the document.
Parameters:
string
- cssFileName = New path to image files
removeEvent
void removeEvent (whichObject,eventType,functionName)
This function removes an event listener from an element on the page.
Parameters:
functionName
- = Name of function to execute.
Object
- whichObject = Reference to HTML element(Which object to assigne the event)
String
- eventType = Which type of event, example "mousemove" or "mouseup"
setCssCacheStatus
void setCssCacheStatus (cssCacheStatus)
Specify if css files should be cached or not.
Parameters:
Boolean
- cssCacheStatus = true = cache on, false = cache off
Documentation generated by
JSDoc on Mon Nov 20 09:23:50 2006