Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to zoom in an image using javascript or jquery

 
Vidya Gupta
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I would like to be able to zoom in and out a JPEG image in my project.

I would like to zoom the image when we click on some part on it. How can I achieve this?

In simple words, how can I zoom a JPEG image in and out when I click on the image programmatically? The solution may be in HMTL or Javascript or jquery. Or if there are any other third party tools to perform the zoom operation on jpeg images, please recommend them to me. Please give me any ideas.

Thanks,
Vidya
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are plenty of scripts on the net, did you search?
 
Sandy Chatterjee
Ranch Hand
Posts: 55
Hibernate Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



 
Vidya Gupta
Ranch Hand
Posts: 98
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya i searched in internet.. I tried to do by jquery gzoom plugin.. But now my work is little bit changed. First i want to click on the image and then a pop up window should open and in that pop up window the zooming operations should happen. But by using gzoom plugin i don't know how to do the zooming operations in a separate pop up window..

Thanks,
Vidya
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A pop up window? You mean window.open()? Avoid popups at all cost, that is a bad design.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic