We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Post Form in cflayout Area

quarkmike
quarkmike asked
on
Medium Priority
1,023 Views
Last Modified: 2012-06-27
Hi there,

I try to send a form values from a cflayout area to another one.

Here is the Code.

The goal is to send value from the form to the center layout.

thanks in advance.
<cflayout name="thelayout" type="border">
 
 
<cflayoutarea name="left" position="left" closable="false" collapsible="true" splitter="true" style="height:100%; width:300px;">
<cfform >
<cfinput type="text" name="type">
<cfinput type="submit" name="submit">
</cfform>
</cflayoutarea>
 
<cflayoutarea name="center" position="center" style="height:100%;">
<cfdump var="#form#">
</cflayoutarea>
 
 
<cflayoutarea name="right" position="right"  closable="false" collapsible="true" splitter="true" style="height:100%; width:60%;">
 
</cflayoutarea>
 
</cflayout>

Open in new window

Comment
Watch Question

try this:

1) create a simple .cfm page - let's call it formaction.cfm - to process your form. you can just put your <cfdump var="#form#"> in it.

2) add a NAME attribute to your cfform tag if you do not have one. i will assume the NAME is 'myform' for now...

3) in your cffrom change
<cfinput type="submit" name="submit">
to
<input type="button" vane="submit" value="submit" onclick="ColdFusion.navigate('formaction.cfm', 'center', null, null, 'post', 'myform');">

that worked fine in my test.

see full samle code attached.

Azadi
<!--- CFLAYOUT page --->
<cflayout name="thelayout" type="border">
 
<cflayoutarea name="left" position="left" closable="false" collapsible="true" splitter="true" style="height:100%; width:300px;">
<cfform name="myform">
<cfinput type="text" name="type">
<input type="button" vane="submit" value="submit" onclick="ColdFusion.navigate('formaction.cfm', 'center', null, null, 'post', 'myform');">
</cfform>
</cflayoutarea>
 
<cflayoutarea name="center" position="center" style="height:100%;"></cflayoutarea>
 
<cflayoutarea name="right" position="right"  closable="false" collapsible="true" splitter="true" style="height:100%; width:60%;"></cflayoutarea>
 
</cflayout>
 
<!--- form action page (formaction.cfm) --->
<cfdump var="#form#">

Open in new window

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.