File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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: 63552

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

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Look at my answers here:

I agree. Here's the link:
subject: Finding Component Co-ordinates
It's not a secret anymore!