STools

Class SUtilities

Object
   |
   +--SUtilities

class SUtilities

Defined in SUtilities.js

Version: 1.0

Author: deltapositive (deltapositive@yahoo.fr)


Field Summary
<static>  string IMAGE_PREFIX_URL
          This is a constant you have to set.
This constant is a prefix for all images used by the STools.
Must not end with '/'.
<static>  boolean IS_IE
          Boolean constant telling is user uses Internet Explorer or not.
This constant is used by all SUtilities, but you may have to use it also.
<static>  Object mouseX
          
<static>  Object mouseY
          
 
Constructor Summary
SUtilities ()
            SUtilities is part of the STools.

Copyright 2005 STools

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.


SUtilities is a static class with general contants and methods.
 
Method Summary
<static> void attachEvent(<HTMLElement> element, <string> event, <function> handler)
           Attach an handle of an event (such as 'click' or 'mousemove') on an element
<static> string debug(<Object> elt)
           This method is proposed for debug purposes.
Return all properties of an object.
Exemple: alert( SUtilities.debug(document) )
<static> void detachEvent(<HTMLElement> element, <string> event, <function> handler)
           Detach an handle of an event (such as 'click' or 'mousemove') from an element
<static> Object getChildrenByTagName(<HTMLElement> elt, <string> tag)
           Get the children, grand children...
<static> Object getDirectChildrenByTagName(<HTMLElement> elt, <string> tag)
           Get the children of a given html element that have a tagname.
<static> Object getParentWithTag(<HTMLElement> elt, <string> tag)
           Get the parent of an element that match a tagname.
<static> void loadScript(<string> url, <Document> _document, <function> onLoadListener)
           Loads dinamically a script.
<static> void loadStyle(<string> url, <Document> _document, <function> onLoadListener)
           Loads dinamically a css.

Field Detail

IMAGE_PREFIX_URL

<static> string IMAGE_PREFIX_URL

IS_IE

<static> boolean IS_IE

mouseX

<static> Object mouseX

mouseY

<static> Object mouseY

Constructor Detail

SUtilities

SUtilities()

Method Detail

attachEvent

<static> void attachEvent(<HTMLElement> element, <string> event, <function> handler)

debug

<static> string debug(<Object> elt)

detachEvent

<static> void detachEvent(<HTMLElement> element, <string> event, <function> handler)

getChildrenByTagName

<static> Object getChildrenByTagName(<HTMLElement> elt, <string> tag)

getDirectChildrenByTagName

<static> Object getDirectChildrenByTagName(<HTMLElement> elt, <string> tag)

getParentWithTag

<static> Object getParentWithTag(<HTMLElement> elt, <string> tag)

loadScript

<static> void loadScript(<string> url, <Document> _document, <function> onLoadListener)

loadStyle

<static> void loadStyle(<string> url, <Document> _document, <function> onLoadListener)

STools

- STools Copyright 2005 -




Documentation generated by JSDoc on Tue Jan 24 21:43:37 2006