RE: Captupturing Form Elements

2000-04-06 Thread Sean German

Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop 
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Captupturing Form Elements

2000-04-06 Thread Chris . Austin

You could use the CFWDDX tag to convert the form structure to XML and store
it as hidden form field within the next form.  This prevents any looping.

-Original Message-
From: Sean German [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 9:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Captupturing Form Elements


Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop 

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Captupturing Form Elements

2000-04-06 Thread Brian Peddle

YOu are saying WDDX will parse out all the fieldsnames and there values?

-- Original Message --
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Thu, 6 Apr 2000 09:17:58 -0600 

You could use the CFWDDX tag to convert the form structure to XML and store
it as hidden form field within the next form.  This prevents any looping.

-Original Message-
From: Sean German [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 9:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Captupturing Form Elements


Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop 

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Captupturing Form Elements

2000-04-06 Thread Chris . Austin

Well, if I understand it correctly... CF 4.5 stores the FORM elements as a
structure.  Since you are able to convert structures and other complex data
into WDDX packets as they do in Spectra, you should be able to do this.
Now, I think it was not until 4.5 that Allaire coverted the FORM,URL and
etc. to structures.  So, I think you might be out of luck with it in CF 4.0.
There is a petty good article in CF Developer's Journal Volume 2: Issue 2
about this topic.  The article title is "Improving Web Page Usability with
Wizards" by Daniel Jean. It might help you out.

Best regards,
Chris

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 9:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Captupturing Form Elements


YOu are saying WDDX will parse out all the fieldsnames and there values?

-- Original Message --
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Thu, 6 Apr 2000 09:17:58 -0600 

You could use the CFWDDX tag to convert the form structure to XML and store
it as hidden form field within the next form.  This prevents any looping.

-Original Message-
From: Sean German [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 9:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Captupturing Form Elements


Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop 

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Captupturing Form Elements

2000-04-06 Thread Dan G. Switzer, II

Brain,

WDDX won't do it natively, but I have a library that will:
http://www.oacfug.org/users/dswitzer/forms/

-Dan
++---+
|   name | Dan G. Switzer, II|
|company | PengoWorks.com|
|www | http://www.pengoworks.com |
| mailto | [EMAIL PROTECTED]   |
++---+


-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 11:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Captupturing Form Elements

YOu are saying WDDX will parse out all the fieldsnames and there values?

-- Original Message --
From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
Date: Thu, 6 Apr 2000 09:17:58 -0600

You could use the CFWDDX tag to convert the form structure to XML and store
it as hidden form field within the next form.  This prevents any looping.

-Original Message-
From: Sean German [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 9:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Captupturing Form Elements


Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



RE: Captupturing Form Elements

2000-04-06 Thread Chris Evans

cfloop index="columns"  list="#query.columnlist#"

/cfloop


Chris Evans
[EMAIL PROTECTED]
http://www.fuseware.com



-Original Message-
From: Sean German [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 11:16 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Captupturing Form Elements


Is there an analogous solution to looping through the fields of a query?

-Original Message-
From: Brian Peddle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 06, 2000 10:51 AM
To: [EMAIL PROTECTED]
Subject: Re: Captupturing Form Elements


You can loop over all the fieldnames submitted:

cfloop index="fields"  list="#form.fieldnames#" delimiters=","

Put whatever processing on the fieldnames you need here

/cfloop

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Captupturing Form Elements

2000-04-06 Thread Stephen M. Aylor

WDDX wont parse and evaluate the form field elements, but it seems it would
make a for an easy way to pass the elements on to the next template, as the
poster's message indicated that the next cfm/page wouldnt be processing
them.  Also it seems it would depend on what ver of CFAS the poster is using
to determine the best solution, AND what needs to be done with the form
elements and there values - ultimately. but if... CFAS 4.5, and the next
template just needs to pass on the form elements to a following template -
wddx seems it might be a good tool.

!--- Use of CFAS' 4.5 new "Form" structure ---
cfwddx action="cfml2wddx" input="#Form#" output="yourvarnamehere"

then make a hidden form field name in the next template where the value is
"yourvarnamehere" and pass it along...


Steve



 You could use the CFWDDX tag to convert the form structure to XML and
store
 it as hidden form field within the next form.  This prevents any looping.



 Is there an analogous solution to looping through the fields of a query?

 You can loop over all the fieldnames submitted:

 cfloop index="fields"  list="#form.fieldnames#" delimiters=","

 Put whatever processing on the fieldnames you need here

 /cfloop


--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Captupturing Form Elements

2000-04-06 Thread Emily B. Kim

if you're using 4.5, form variables are automatically in a structure
(named FORM) that always exists - it's just empty if there is no form
submission. what i would suggest is on your action page, just do a
StructKeyList(FORM) which will give you a list of all the keys (the
formfield names). from that you will be able to get the form values.
this is the same idea as brian set out below, but it works with a
structure instead of a list which i would think would work more quickly.
-emily

Brian Peddle wrote:
 
 You can loop over all the fieldnames submitted:
 
 cfloop index="fields"  list="#form.fieldnames#" delimiters=","
 
 Put whatever processing on the fieldnames you need here
 
 /cfloop
 -- Original Message --
 From: "Lee Moore" [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Thu, 6 Apr 2000 09:36:42 -0400
 
 Hello all.
 I have a work page that may recieve form submission from several different
 pages. These pages may have different numbers of form elements and the forms
 elements have different names. Is there some generic code that I can right
 that will take any form submissions and pass them on to the page it is
 forwarding too, regardless of names. This is something I could do with ASP
 by iterating through the forms numerically without specifying names, but I
 dont know how to do that in CF.
 
 TIA
 
 Lee
 
 --
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
 
 --
 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.



Re: Captupturing Form Elements

2000-04-06 Thread Fred Sanders

Lee,

The very act of passing the form variables is automated by the forms action
and method.  I don't understand what else your trying to accomplish once
they get there.  Are you just trying to list them out on the action page?
MORE INPUT MORE INPUT, NEED MORE INPUT!   LOL

Fred Sanders
Galveston, Texas

The classically-music-minded among us may have noted a new TV ad for
Microsoft's Internet Explorer e-mail program which uses the musical theme of
the "Confutatis Maledictis" from Mozart's Requiem. -- "Where do you want to
go today?" is the cheery line on the screen --- while the chorus sings,
"Confutatis maledictis, flammis acribus addictis..."   -- This translates to
"The damned and accursed are convicted to the flames of hell."
Good to know that Microsoft has done its research.
- Original Message -
From: "Lee Moore" [EMAIL PROTECTED]
To: "ColdFusion Discussion List" [EMAIL PROTECTED]
Sent: Thursday, April 06, 2000 8:36 AM
Subject: Captupturing Form Elements


 Hello all.
 I have a work page that may recieve form submission from several different
 pages. These pages may have different numbers of form elements and the
forms
 elements have different names. Is there some generic code that I can right
 that will take any form submissions and pass them on to the page it is
 forwarding too, regardless of names. This is something I could do with ASP
 by iterating through the forms numerically without specifying names, but I
 dont know how to do that in CF.

 TIA

 Lee

 --

 Archives: http://www.eGroups.com/list/cf-talk
 To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=listsbody=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.