Class PTDOMUtil

Object
   |
   +--PTDOMUtil

class PTDOMUtil


Static class containing DOM utility methods.

Usage:	
 	PTDOMUtil.getElementLeft(elem);
 

Defined in PTUtil.js


Field Summary
<static>  <final> Object VERSION
          
 
Constructor Summary
PTDOMUtil ()
            PTDOMUtil static object constructor
 
Method Summary
<static> Boolean elementContains(containerElement, containedElement)
           Checks if an element is contained within another element in the DOM hierarchy
<static> Element getElementById(id)
           Wrapper for document.getElementById with performance improvements.
<static> Number getElementHeight(elm)
           Gets the height of the specified element
<static> Number getElementLeft(elm)
           Gets the page left position of the specified element
<static> Number getElementTop(elm)
           Gets the page left position of the specified element
<static> Number getElementWidth(elm)
           Gets the width of the specified element
<static> String getInnerHTML(node, formatHTML, replacementTagIdMap)
           Retrieves the HTML code contained by the given node.
<static> String getOuterHTML(node, formatHTML, replacementTagIdMap)
           Retrieves the HTML code from the given node.
<static> Number getWindowHeight()
           Gets the height of the window
<static> Number getWindowWidth()
           Gets the width of the window
<static> void insertAdjacentElement(targetElement, insertWhere, elementToInsert)
           Inserts an element into the DOM at a certain position relative to a specified element.
<static> Boolean setElementOpacity(element,value)
           Sets the opacity value of an element, if functionality is available
<static> void toggleVisibility(id)
           This will toggle (set to none/block) display property for a div block.

Field Detail

VERSION

<static> <final> Object VERSION

Constructor Detail

PTDOMUtil

PTDOMUtil()

Method Detail

elementContains

<static> Boolean elementContains(containerElement, containedElement)

getElementById

<static> Element getElementById(id)

getElementHeight

<static> Number getElementHeight(elm)

getElementLeft

<static> Number getElementLeft(elm)

getElementTop

<static> Number getElementTop(elm)

getElementWidth

<static> Number getElementWidth(elm)

getInnerHTML

<static> String getInnerHTML(node, formatHTML, replacementTagIdMap)

getOuterHTML

<static> String getOuterHTML(node, formatHTML, replacementTagIdMap)

getWindowHeight

<static> Number getWindowHeight()

getWindowWidth

<static> Number getWindowWidth()

insertAdjacentElement

<static> void insertAdjacentElement(targetElement, insertWhere, elementToInsert)

setElementOpacity

<static> Boolean setElementOpacity(element,value)

toggleVisibility

<static> void toggleVisibility(id)


Documentation generated by JSDoc on Wed Aug 24 10:17:38 2005