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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attach Javascript Close Window to Recordset Image Link 1

Status
Not open for further replies.
Mar 17, 2005
147
US
I have a page which calls a recordset image. When you click the image the link is set to
<%=(Recordset1.Fields.Item("image1").Value)%> so it opens up in a new window bigger.
I want to know if there is way to attach to the link a java script which will add a close window behavior?

Thanks.
Steve
 
Link to an asp page that displays the image and has a close window behaviour on it something like..
Code:
<%
mylink="mypage.asp?file=" & Recordset1.Fields.Item("image1").Value
%>
Then your image display page will have something like
Code:
<%
myImage=Request.Querystring("file")
%>
<img src="<%=myImage%>">

Cheech

[Peace][Pipe]
 
Hey Cheech thanks
Is there a way to attach the javascript to the end of the image link I currently have which is simply the recordset value? <%=(Recordset1.Fields.Item("image1").Value)%>

 
No I dont think that is possible

Cheech

[Peace][Pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top