macromedia.coldfusion.cfml_general_discussion
[Top] [All Lists]

Re: JS popup and passing URL variables or ?

Subject: Re: JS popup and passing URL variables or ?
From: "DuLaus"
Date: Sat, 4 Aug 2007 16:19:39 +0000 UTC
Newsgroups: macromedia.coldfusion.cfml_general_discussion
On the template with the JS pop up window. (index.cfm)

 <cfset peaks="/motorcoach/ca/images/popup/HPIM1070.JPG">

 <cfoutput><A HREF="javascript:void(0)"
 onclick="window.open('viewer.cfm?image=#peaks#', 
'welcome','width=650,height=500,menubar=no,status=no')"> peaks</A></cfoutput>
 _________________________________

 On the template which will produce the image (viewer.cfm)

 <cfparam name="url.image" default="0">
 <cfoutput><IMG SRC="#url.image#" width="550" height="413" 
class="image"></cfoutput>

 _________________________________

 Cheers


<Prev in Thread] Current Thread [Next in Thread>