Re: pass form.variable by URL

2001-05-02 Thread Jon Hall

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



[Re:] Re: pass form.variable by URL

2001-05-02 Thread FARRAH NG

hi Jon, 
i am still not sure what should be the changes.  Instead of using
cfoutputmyaction.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



[Re:] Re: pass form.variable by URL

2001-05-02 Thread FARRAH NG

hi everbody,
let me clarify my problem here, maybe my previous email is kind of
confusing.

I have created a form with a text input box called YourName. So if
i enter 'John Smith' in that box, form.yourname should have 'john
smith' in it. I have 3 buttons on the form, a submit button goes
to update.cfm, a cancel button and the last button called 'preview' 
which should create a popup window and the new pop up window should
execute preview.cfm.  If i click preview, it should pass the 
form.yourname content 'John smith' to the new pop up window 
running preview.cfm, display the name 'John Smith', or do whatever 
should be
done with yourname value 'john smith'.
 
Preview.cfm should be able to display form.yourname with 'John 
Smith' in there.  My problem is the value of form.yourname is not
passed to the pop up window preview.cfm


My code for the preview button in the form page is:
input type=text name=YournamePlease enter your name

input type=submit value=submit
input type=button value=preview onclick=window.open('preview.
cfm?name=Yourname','',...)

and the problem is in the window.open preview.cfm?name=yourname 
does not carry 'John Smith' to preview.cfm; instead it just have the 
word 'yourname' in it.

I have tried to use #form.yourname# within cfoutput tags, 
document.form.yourname.value or even create a javascript variable
called newname and assigned yourname.value to it and try to pass
newname through window.open, and so far nothing works.

It really screw up.

I need you guys to help.

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



RE: ] Re: pass form.variable by URL

2001-05-02 Thread Dan G. Switzer, II

You need to pass the actual value of the field:
input
type=button
value=preview
onClick=window.open('preview.cfm?name=' +
escape(document.forms[0].Yourname.value),'',...)

-Dan

 -Original Message-
 From: FARRAH NG [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, May 02, 2001 1:00 PM
 To: CF-Talk
 Subject: [Re:] Re: pass form.variable by URL


 hi everbody,
 let me clarify my problem here, maybe my previous email is kind of
 confusing.

 I have created a form with a text input box called YourName. So if
 i enter 'John Smith' in that box, form.yourname should have 'john
 smith' in it. I have 3 buttons on the form, a submit button goes
 to update.cfm, a cancel button and the last button called 'preview'
 which should create a popup window and the new pop up window should
 execute preview.cfm.  If i click preview, it should pass the
 form.yourname content 'John smith' to the new pop up window
 running preview.cfm, display the name 'John Smith', or do whatever
 should be
 done with yourname value 'john smith'.

 Preview.cfm should be able to display form.yourname with 'John
 Smith' in there.  My problem is the value of form.yourname is not
 passed to the pop up window preview.cfm


 My code for the preview button in the form page is:
 input type=text name=YournamePlease enter your name

 input type=submit value=submit
 input type=button value=preview onclick=window.open('preview.
 cfm?name=Yourname','',...)

 and the problem is in the window.open preview.cfm?name=yourname
 does not carry 'John Smith' to preview.cfm; instead it just have the
 word 'yourname' in it.

 I have tried to use #form.yourname# within cfoutput tags,
 document.form.yourname.value or even create a javascript variable
 called newname and assigned yourname.value to it and try to pass
 newname through window.open, and so far nothing works.

 It really screw up.

 I need you guys to help.

 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



pass form.variable by URL

2001-05-01 Thread FARRAH NG

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



Re: pass form.variable by URL

2001-05-01 Thread Josh Meekhof

Are you sure that the variable you are trying to reference is found in
the form scope? i.e. it was POSTed from another template?  Try
referencing this variable from the URL scope or without a scope at all.

--
Josh Meekhof

FARRAH NG wrote:
 
 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