• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Click to enlarge image

 
jason pogi
Greenhorn
Posts: 9
  • 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: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic