wood burning stoves 2.0*
The moose likes Servlets and the fly likes Image Construction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Image Construction" Watch "Image Construction" New topic
Author

Image Construction

Sanjay Mohanty
Greenhorn

Joined: Sep 12, 2009
Posts: 5
Hi,

I have a image displayed in browser inside div element. Now I want to read the height, width and pixels of that image on click of a button.

Please suggest.

Regards,
Sanjay
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
This is not something you would do with a servlet. JavaScript is more suitable for this sort of thing.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I guess you are using an Image Tag inside the Div , now you can using javascript Dom API .

i would suggest you to go google with access javascript dom image properties


Save India From Corruption - Anna Hazare.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Image Construction
 
Similar Threads
problem with load image file
How To Write Some Text in a Horizontal Rule?
automatic display of the java list on mouseover an image
looking for a creative way to get a string from file.xml
thumbnail in jsp