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="Yourname">Please 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists