wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Finding Component Co-ordinates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Finding Component Co-ordinates " Watch "Finding Component Co-ordinates " New topic

Finding Component Co-ordinates

Ramesh Pappala
Ranch Hand

Joined: Sep 14, 2005
Posts: 50

Can any one send the javascript code to find the X,Y co-ordinates and
the height,width of a component in a page.

Ex: I want to send the object name to the function which can find the co-
ordinates and height,width of the component(ex: textfield).

Please urgent!
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61082

Please read this to see why adding "urgent" to your posts is a poor idea.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
Look at my answers here: http://www.coderanch.com/t/119042/HTML-JavaScript/determining-if-element-hidden

I agree. Here's the link: http://aspose.com/file-tools
subject: Finding Component Co-ordinates