DotNetNuke Client API - dnn.dom.positioning Namespace

The methods found in this object are responsible for providing a uniform way to get the position and coordinates of objects found in the DOM.

bodyScrollLeft Gets the body scroll position from left
Returns Number containing coordinate

bodyScrollTop Gets the body scroll position from top
Returns Number containing coordinate

dims This is an object that gets an element's dimensions and returns an object with the top, left, height, width, right, and bottom. Must be instantiated.
eSrc Object reference to element

elementHeight Gets an element's height
eSrc Object reference to element
Returns Number containing measurement

elementLeft Gets element's total offset from left
eSrc Object reference to element
Returns Number containing measurement

elementOverlapScore Gets area of overlap between passed in elements
oDims1 Dimension object for element 1
oDims2 Dimension object for element 2
Returns Area (length x height) of overlap

elementTop Gets element's total offset from top
eSrc Object reference to element
Returns Number containing measurement

elementWidth Gets an element's width
eSrc Object reference to element
Returns Number containing measurement

enableDragAndDrop Enables drag and drop functionality for any element
oContainer Element object reference for the container to be dragged
oTitle Element object reference for the title that causes drag
sDragCompleteEvent Optional String representing function to be executed after drag drop complete
sDragOverEvent Optional String representing function to be executed during drag drop operation

Title...