File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Click to enlarge image" Watch "Click to enlarge image" New topic
Author

Click to enlarge image

jason pogi
Greenhorn

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?
regards..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61769
    
  67

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Click to enlarge image