hi Jon, 
i am still not sure what should be the changes.  Instead of using
<cfoutput>myaction.cfm?msg=#form.info#</cfoutput> in window.open,
how can i refer to the form variable INFO in window.open, since it
does not recognize neither #form.info# nor info.value

I tried something like window.open('myaction.cfm?msg=form.info','');
and the receiving page myaction.cfm URL variable msg has literally
'form.info' in it, instead of the supposed value of INFO carried over
from the form.

thanks

On Wed, 02 May 2001 06:22:20 -0400
Jon Hall wrote:

>Since the variable part of the url in the popup, the variable 
is now in the
>url scope and is called msg. Try referencing the variable without 
a scope
>with #msg# or with the correct scope #url.msg#. Both should work.
>
>jon
>----- Original Message -----
>From: "FARRAH NG" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Tuesday, May 01, 2001 10:42 PM
>Subject: pass form.variable by URL
>
>
>> I am trying to pass a form.variable to another cfm page but 
with no
>> success.  I have a form variable call INFO and my code of 
trying to
>> pass the variable through window.open using URL is like :
>>
>> <input type="button" value="go" onclick="window.open('<cfoutput>
>> myaction.cfm?msg=#form.info#</cfoutput>\,'','height=300,width=300')";>
>>
>> and CF server returns an error since it does not recognize 
#form.info#
>> within the window.open.  I tried to replace #form.info# with
>> info.value but it makes no different.
>>
>> If there is anyone have any idea please give me a hand.
>>
>> thanks
>>
>>
>>
>> --------------------------------------------------------------------------
>> Global Internet phone calls, voicemail, fax, e-mail and instant 
messaging.
>> Sign-up today at http://www.hotvoice.com
>>
>>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to