Dan,
I definitely dunno JS very well but wouldn't you need to append the
?recipient=#recipient# to ('EmailForm.cfm'...) as
('EmailForm.cfm?recipient=#recipient#',...)
Remember, I don't JS very well so I could be steering you in the wrong
direction.
Cheers,
Karl
> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 23 May 2002 16:43:56 -0400
> To: [EMAIL PROTECTED]
> Subject: [CFTALKTor] Passing a Variable to javascript:void(0)
>
> We have a template that we allow users to use to send e-mail. We call it
> like this:
>
> <A HREF="javascript:void(0)" onClick="Emailwin=window.open
> ('EmailForm.cfm','thewin','width=560,height=380,top=1,left=1');">
> Stuff</A>
>
> It works, but, on the actual EMailForm, we are hard coding the recipient.
> We want to send the recipient's e-mail as a recipient. So I tried this:
>
> <cfset recipient = "[EMAIL PROTECTED]">
>
> <cfoutput>
>
> <A HREF="javascript:void(0)?recipient=#recipient#" onClick
> ="Emailwin=window.open
> ('EmailForm.cfm','thewin','width=560,height=380,top=1,left=1');">
> Stuff</A>
>
> </cfoutput>
>
> When I hover over the link, I see javascript:void(0)?[EMAIL PROTECTED]
> in the browser status bar. When I click on the link, the new window opens,
> but the variable does not get passed.
>
> Any suggestions?
>
>
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: [EMAIL PROTECTED]
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "A. Karl Zarudny" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)