aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Click to enlarge image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 forum!

JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Click to enlarge image" Watch "Click to enlarge image" New topic

Click to enlarge image

jason pogi

Joined: Aug 13, 2007
Posts: 9
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?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62101

Upon clicking, change the src attribute of the image to that of a server-side resource that returns the enlarged image.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
jason pogi

Joined: Aug 13, 2007
Posts: 9
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:
subject: Click to enlarge image