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 dhtml-suite-for-applications.js

Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0


Field Summary
 Object cssCacheStatus
          
 Object eventEls
          
 Object okToSelect
          
 
Constructor Summary
DHTMLSuite.common ()
           
 
Method Summary
 void addEvent( obj, type, fn,suffix )
           This function adds an event listener to an element on the page.
 Object cancelEvent()
           This function only returns false.
 void correctPng(el)
           Correct png for old IE browsers
 void deleteCookie( name, path, domain )
           This function deletes a cookie.
 Object getAssociativeArrayFromString(propertyString)
           Returns an associative array from a comma delimited string
 Object getCookie(name)
           These cookie functions are downloaded from http://www.mach5.com/support/analyzer/manual/html/General/CookiesJavaScript.htm
 Object getEl(elRef)
           Return a reference to an object
 Object getKeyCode(e)
           Returns key code from event
 Object getKeyFromEvent(e)
           Returns key from event object
 Object getLeftPos(el)
           This method will return the left coordinate(pixel) of an HTML element
 Object getObjectByAttribute(e,attribute)
           Walks up the DOM tree and returns first found object with a given attribute set
 Object getObjectByClassName(e,className)
           Walks up the DOM tree and returns first found object with a given class name
 Object getSrcElement(e)
           Returns a reference to the HTML element which triggered an event.
 Object getStyle(el,property)
           Return specific style attribute for an element
 Object getTopPos(el)
           This method will return the top coordinate(pixel) of an HTML element/tag
 Object getUniqueId()
           Returns a unique numeric id
 void init()
           This method initializes the DHTMLSuite_common object.
 Object isArray(el)
           Return true if element is an array
 Object isObjectClicked(obj,e)
           Returns true if an object is clicked, false otherwise.
 void loadCSS(cssFile,prefixConfigPath)
           This method loads a CSS file(Cascading Style Sheet) dynamically - i.e.
 void removeEvent(obj,type,fn,suffix)
           This function removes an event listener from an element on the page.
 void setCookie(name,value,expires,path,domain,secure)
           These cookie functions are downloaded from http://www.mach5.com/support/analyzer/manual/html/General/CookiesJavaScript.htm
 void setCssCacheStatus(cssCacheStatus)
           Specify if css files should be cached or not.

Field Detail

cssCacheStatus

Object cssCacheStatus

eventEls

Object eventEls

okToSelect

Object okToSelect

Constructor Detail

DHTMLSuite.common

DHTMLSuite.common()

Method Detail

addEvent

void addEvent( obj, type, fn,suffix )

cancelEvent

Object cancelEvent()

correctPng

void correctPng(el)

deleteCookie

void deleteCookie( name, path, domain )

getAssociativeArrayFromString

Object getAssociativeArrayFromString(propertyString)

getCookie

Object getCookie(name)

getEl

Object getEl(elRef)

getKeyCode

Object getKeyCode(e)

getKeyFromEvent

Object getKeyFromEvent(e)

getLeftPos

Object getLeftPos(el)

getObjectByAttribute

Object getObjectByAttribute(e,attribute)

getObjectByClassName

Object getObjectByClassName(e,className)

getSrcElement

Object getSrcElement(e)

getStyle

Object getStyle(el,property)

getTopPos

Object getTopPos(el)

getUniqueId

Object getUniqueId()

init

void init()

isArray

Object isArray(el)

isObjectClicked

Object isObjectClicked(obj,e)

loadCSS

void loadCSS(cssFile,prefixConfigPath)

removeEvent

void removeEvent(obj,type,fn,suffix)

setCookie

void setCookie(name,value,expires,path,domain,secure)

setCssCacheStatus

void setCssCacheStatus(cssCacheStatus)


Documentation generated by JSDoc on Mon Oct 8 10:17:27 2007