|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Element
Defined in prototype.js
Nested Class Summary | |
<static class> |
Element.Methods |
<static class> |
Element.hiddenObstructors |
<static class> |
Element.hiddenOverlappers |
Field Summary | |
<static> Object |
_extend
Replace prototype.js's Element.extend() to re-extend elements after scriptaculous' effects.js is loaded. |
<static> Object |
_makePositioned
Fix prototype.js's Element.makePositioned() to ignore table rows. |
<static> Object |
ClassNames
|
<static> Object |
CSS_LENGTH
|
<static> Object |
CSS_PROPERTIES
|
Constructor Summary | |
Element
(tagName, attributes)
|
Method Summary | |
<static> void
|
collectTextNodes(element)
|
<static> void
|
collectTextNodesIgnoreClass(element, className)
|
<static> Object
|
create(name, attributes, text, rawhtml)
Creates a new element with the specified name and attributes. |
<static> Object
|
dislocate(element, to, form)
Dislocates specified element. |
<static> Object
|
extend(element)
|
<static> Object
|
findAncestor(element, index, tagName, className)
Find nth ancestor (or self) of element with specified tagName regex or className regex. |
<static> Object
|
findChild(element, index, tagName, className)
Find nth direct child of element with specified tagName regex or className regex. |
<static> Object
|
findChildren(element, only, recursive, tagName)
|
<static> Object
|
findObstructingObjects(element)
Returns list of elements on the page (such as applets, flash objects, selectboxes in ie6, etc) which obstruct html layered over those elements. |
<static> Object
|
findParent(element, name, attributes)
Finds parent (or self) with specified tag name and/or attributes. |
<static> void
|
forceRerendering(element)
|
<static> Object
|
getAttribute(element, qname, ns, localname)
Gets the specified element attribute as a string value. |
<static> void
|
getInlineOpacity(element)
|
<static> Object
|
getRole(element)
Gets the WAI role for the specified element. |
<static> Object
|
getState(element, state)
Gets the state value for the specified element and WAI state. |
<static> Object
|
getStyles(element)
|
<static> Object
|
hideObstructingObjects(element)
Hides obstructing elements. |
<static> Object
|
hideOverlappingObjects(element, rect)
Hide overlapping embeds and selectboxes. |
<static> Object
|
isDescendantOrSelf(e0, e1)
True if e1 is descendant of e0 or is e0. |
<static> Object
|
isParent(child, element)
|
<static> Object
|
offsetSize(element, type)
|
<static> Object
|
relocate(element)
Relocates specified element back to original (prior to dislocation) position. |
<static> void
|
setAttribute(element, qname, value, ns, localname)
Sets the specified element attribute as a string value. |
<static> Object
|
setContentZoom(element, percent)
|
<static> void
|
setRole(element, role)
Sets the WAI role for the specified element. |
<static> void
|
setState(element, state, value)
Sets the state value for the specified element and WAI state. |
<static> Object
|
showObstructingObjects(element)
Shows obstructing elements. |
<static> Object
|
showOverlappingObjects(element)
Re-show overlapping embeds and selectboxes. |
<static> void
|
updateOuter(element, html)
Replaces the specified element with the specified html representing the new "outerHTML" of the element. |
Field Detail |
<static> Object _extend
<static> Object _makePositioned
<static> Object ClassNames
<static> Object CSS_LENGTH
<static> Object CSS_PROPERTIES
Constructor Detail |
Element(tagName, attributes)
Method Detail |
<static> void collectTextNodes(element)
<static> void collectTextNodesIgnoreClass(element, className)
<static> Object create(name, attributes, text, rawhtml)
name
- New element name.
attributes
- (optional) Object whose properties will be used to set the new element's attributes.
text
- (optional) Text for the new element.
rawhtml
- (optional) True to treat text as raw html, false (the default) to escape text.
<static> Object dislocate(element, to, form)
element
- Element to dislocate.
to
- (optional) New parent element.
form
- (optional) Form from which to dislocate.
<static> Object extend(element)
<static> Object findAncestor(element, index, tagName, className)
element
- Element whose nth ancestor to find (0 = first/self, 1 = second/parent, etc).
index
- Index of matching ancestor.
tagName
- (optional) Regex to match against ancestor tagName.
className
- (optional) Regex to match against ancestor className.
<static> Object findChild(element, index, tagName, className)
element
- Element whose nth child to find.
index
- Index of matching child.
tagName
- (optional) Regex to match against child tagName.
className
- (optional) Regex to match against child className.
<static> Object findChildren(element, only, recursive, tagName)
<static> Object findObstructingObjects(element)
element
- (optional) Ignore obstructors in this element.
<static> Object findParent(element, name, attributes)
element
- DOM element or id from which to start search.
name
- Tag name of element for which to search (ie "DIV").
attributes
- (optional) Map of properties to match to element attributes.
<static> void forceRerendering(element)
<static> Object getAttribute(element, qname, ns, localname)
element
- Element object.
qname
- Attribute name.
ns
- (optional) Attribute namespace.
localname
- (optional) Attribute local name.
<static> void getInlineOpacity(element)
<static> Object getRole(element)
element
- Element object or id.
<static> Object getState(element, state)
element
- Element object or id.
state
- (Unprefixed) WAI state (ex: "disabled").
<static> Object getStyles(element)
<static> Object hideObstructingObjects(element)
element
- (optional) Ignore obstructors in this element.
<static> Object hideOverlappingObjects(element, rect)
element
- Element or id of element for which to hide overlapping objects.
rect
- (optional) Element's rectangle (will calculate if null).
<static> Object isDescendantOrSelf(e0, e1)
e0
- Ancestor element.
e1
- Descendant element.
<static> Object isParent(child, element)
<static> Object offsetSize(element, type)
<static> Object relocate(element)
element
- Element to relocate.
<static> void setAttribute(element, qname, value, ns, localname)
element
- Element object.
qname
- Attribute name.
value
- String attribute value.
ns
- (optional) Attribute namespace.
localname
- (optional) Attribute local name.
<static> Object setContentZoom(element, percent)
<static> void setRole(element, role)
element
- Element object or id.
role
- (Unprefixed) WAI role (ex: "progressbar"), or empty string to indicate no role.
<static> void setState(element, state, value)
element
- Element object or id.
state
- (Unprefixed) WAI state (ex: "disabled").
value
- State value (ex: "true"), or empty string to indicate no state value.
<static> Object showObstructingObjects(element)
element
- (optional) Ignore obstructors in this element.
<static> Object showOverlappingObjects(element)
element
- Element or id of element for which to re-show overlapping objects.
<static> void updateOuter(element, html)
element
- Element or id.
html
- Html with which to replace element.
|
CAF Shared JavaScript | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |