This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60050

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:

I agree. Here's the link:
subject: Finding Component Co-ordinates
Similar Threads
inherited from the Component class
dynamically change the position of Button on a panel
Drawing a rectangle but at an angle