Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image Construction

 
Sanjay Mohanty
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is not something you would do with a servlet. JavaScript is more suitable for this sort of thing.
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic