|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--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 |
Object cssCacheStatus
Object eventEls
Object okToSelect
| Constructor Detail |
DHTMLSuite.common()
| Method Detail |
void addEvent( obj, type, fn,suffix )
Object - whichObject = Reference to HTML element(Which object to assigne the event)
String - eventType = Which type of event, example "mousemove" or "mouseup" (NOT "onmousemove")
functionName - = Name of function to execute.
Object cancelEvent()
void correctPng(el)
Object - el - Id or direct reference to image
void deleteCookie( name, path, domain )
String - name = Name of cookie
String - path = Path for cookie (Usually left empty)
String - domain = Cookie domain
Object getAssociativeArrayFromString(propertyString)
String - propertyString - commaseparated string(DHTMLSuite.common.prototype.example = "id:myid,title:My title,contentUrl:includes/tab.inc";)
Object getCookie(name)
String - name = Name of cookie
Object - inputObj = Reference to HTML element
Object getEl(elRef)
Object - elRef = Id, name or direct reference to element
Object getKeyCode(e)
Event - e = Event object
Object getKeyFromEvent(e)
Event - e = Event object
Object getLeftPos(el)
Object - el = Reference to HTML element
Object getObjectByAttribute(e,attribute)
Event - e = Event object
String - attribute = Custom attribute
Object getObjectByClassName(e,className)
Event - e = Event object
String - className = CSS - Class name
Object getSrcElement(e)
Event - e = Event object
Object getStyle(el,property)
Object - el = Reference to HTML element
String - property = Css property
Object getTopPos(el)
Object - el = Reference to HTML element
Object getUniqueId()
void init()
Object isArray(el)
Object - el = Reference to HTML element
Object isObjectClicked(obj,e)
Object - obj = Reference to HTML element
Event - e = Event object
void loadCSS(cssFile,prefixConfigPath)
string - cssFile = Name of css file. It will be loaded from the path specified in the DHTMLSuite.common object
Boolean - prefixConfigPath = Use config path as prefix.
void removeEvent(obj,type,fn,suffix)
Object - whichObject = Reference to HTML element(Which object to assigne the event)
String - eventType = Which type of event, example "mousemove" or "mouseup"
functionName - = Name of function to execute.
void setCookie(name,value,expires,path,domain,secure)
String - name = Name of cookie
String - value = Value of cookie
Int - expires = Timestamp - days
String - path = Path for cookie (Usually left empty)
String - domain = Cookie domain
Boolean - secure = Secure cookie(SSL)
void setCssCacheStatus(cssCacheStatus)
Boolean - cssCacheStatus = true = cache on, false = cache off
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||