This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Click to enlarge image

 
jason pogi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi can someone give me an idea on how i implement a Click to enlarge functionality to an image that i retrieve from a database?
regards..
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64188
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upon clicking, change the src attribute of the image to that of a server-side resource that returns the enlarged image.
 
jason pogi
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.. i was able code it but it seems to have some overhead
here is the code sample
this the image in index.jsp that uses image.jsp to retrieve the image from the database i linked the image to Zoom.jsp


here is the code in Zoom.jsp


again it makes use of image.jsp but this time with a larger width and length
is there a more optimized and better way of doing it?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic