This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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 Elasticsearch in Action this week in the Big Data 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: 62123

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: 15379
Look at my answers here:

I agree. Here's the link:
subject: Finding Component Co-ordinates