Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Click image to view larger image

Status
Not open for further replies.

esearing

IS-IT--Management
Aug 22, 2000
132
US
I need to click on an output image to view a larger image.
My current process.

page1.asp
basic form for selecting records from an Access database. IMAGENAME field contains a reference which allows me to call the image in page2.asp .

page2.asp
performs the database query and displays image and related fields from the database - outputs to standard html.

<!--Call The IMAGENAME to Display-->
<img HEIGHT=&quot;200&quot; WIDTH=&quot;200&quot; src=&quot;images/
<%=Server.HTMLEncode(objRS.Fields(&quot;IMAGENAME&quot;).Value)%>&quot;
>

page2 output

<img HEIGHT=&quot;200&quot; WIDTH=&quot;200&quot; src=&quot;images/
10102438.jpg&quot;
>

Can I use an <a href=&quot;Imagename&quot;...></a> around the <img...> to do this? please show code or point me to a resource.


Or any other method you can suggest would be most apreciated.

PS I may output multiple images and records based on the initial page1 query.




Eric Searing
eric.searing@wcom.com
 
If I understand you correctly, it should be pretty easy...

<!--Call The IMAGENAME to Display-->
<%
dim imageLocation
imageLocation = cstr(objRS.fields(&quot;IMAGENAME&quot;))
%>
<a href=&quot;<img HEIGHT=200 WIDTH=200 src=&quot;images/<%=imageLocation%>&quot;>
</a>

Is that what you're looking for???

You could call it up in a javascript function, too, that would pop up the window that you want the image to show up in...
 
THANKS!!!!
I'll give it a try

Eric Searing
eric.searing@wcom.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top