summaryrefslogtreecommitdiffstats
path: root/autocomplete/js/getobject2.js
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2008-03-28 17:02:18 +0100
committerAndreas Unterkircher <unki@netshadow.at>2008-03-28 17:02:18 +0100
commit144f16a71f7289bb891c52995061aee21e3e08f9 (patch)
treeb8cd9492463dad0cb0dbe751145e45a8fd54b53b /autocomplete/js/getobject2.js
parentaf0be8f9546fb5dec947be33e465bb6d9e85d0a7 (diff)
remove autocomplete and use autosuggest instead
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
Diffstat (limited to 'autocomplete/js/getobject2.js')
-rw-r--r--autocomplete/js/getobject2.js126
1 files changed, 0 insertions, 126 deletions
diff --git a/autocomplete/js/getobject2.js b/autocomplete/js/getobject2.js
deleted file mode 100644
index d8125c5..0000000
--- a/autocomplete/js/getobject2.js
+++ /dev/null
@@ -1,126 +0,0 @@
-//misc objects
-//a simple encapsulation object
-//used to query widths and heights
-
-function cDomObject( sId )
-{
- if( bw.dom || bw.ie )
- {
- this.hElement = document.getElementById( sId )
- this.hStyle = this.hElement.style
- }
-}
-
-cDomObject.prototype.getWidth = function( )
-{
- return cDomObject.getWidth( this.hElement )
-}
-
-cDomObject.getWidth = function( hElement )
-{
- if( hElement.currentStyle )
- {
- var nWidth = parseInt( hElement.currentStyle.width )
- if( isNaN( nWidth ) )
- {
- return parseInt( hElement.offsetWidth )
- }
- else
- {
- return nWidth
- }
- }
- else
- {
- return parseInt( hElement.offsetWidth )
- }
-}
-
-cDomObject.prototype.getHeight = function( )
-{
- return cDomObject.getHeight( this.hElement )
-}
-
-cDomObject.getHeight = function( hElement )
-{
- if( hElement.currentStyle )
- {
- var nHeight = parseInt( hElement.currentStyle.height )
- if( isNaN( nHeight ) )
- {
- return parseInt( hElement.offsetHeight )
- }
- else
- {
- return nHeight
- }
- }
- else
- {
- return parseInt( hElement.offsetHeight )
- }
-}
-
-cDomObject.prototype.getLeft = function()
-{
- return cDomObject.getLeft( this.hElement )
-}
-
-cDomObject.getLeft = function( hElement )
-{
- return parseInt( hElement.offsetLeft )
-}
-
-cDomObject.prototype.getTop = function( )
-{
- return cDomObject.getTop( this.hElement )
-}
-
-cDomObject.getTop = function( hElement )
-{
- return parseInt( hElement.offsetTop )
-}
-
-
-// used to get the absolute position of an relativeli position element
-// by accumulating the offset parameters
-// example
-// cDomObject.getOffsetParam( hElement,'offsetLeft' )
-
-cDomObject.getOffsetParam = function( hElement, sParam, hLimitParent )
-{
- var nRes = 0
- if( hLimitParent == null )
- {
- hLimitParent = document.body.parentElement
- }
- while( hElement != hLimitParent )
- {
- nRes += eval( 'hElement.' + sParam )
- if( !hElement.offsetParent ) { break }
- hElement = hElement.offsetParent
- }
- return nRes
-}
-
-
-// used to get the absolute position of an relativeli position element
-// by accumulating the scroll offset parameters
-// example
-// cDomObject.getScrollOffset( hElement,'Left' )
-
-cDomObject.getScrollOffset = function( hElement, sParam, hLimitParent )
-{
- nRes = 0
- if( hLimitParent == null )
- {
- hLimitParent = document.body.parentElement
- }
- while( hElement != hLimitParent )
- {
- nRes += eval( 'hElement.scroll' + sParam )
- if( !hElement.offsetParent ) { break }
- hElement = hElement.parentNode
- }
- return nRes
-} \ No newline at end of file