RE: Form.Fieldnames and MX

2003-02-13 Thread Tim Blair
> Ok, what happened? I used to be able to loop through 
> form.fieldnames 

Try structkeylist(form)

Tim.


---
OUR NEW SITE IS NOW LIVE
Visit our new website at http://www.rawnet.com/ and
race around the beautiful Bracknell streets at
http://xmas.rawnet.com/
---
Tim Blair
Web Application Engineer, Rawnet Limited
Direct Phone : +44 (0) 1344 393 441
Switchboard : +44 (0) 1344 393 040
---
This message may contain information which is legally
privileged and/or confidential.  If you are not the
intended recipient, you are hereby notified that any
unauthorised disclosure, copying, distribution or use
of this information is strictly prohibited. Such
notification notwithstanding, any comments, opinions,
information or conclusions expressed in this message
are those of the originator, not of rawnet limited,
unless otherwise explicitly and independently indicated
by an authorised representative of rawnet limited.
---




~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Andy Ousterhout
Turn on Display Variables in CF Admin and see what is getting passed

-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 8:29 AM
To: CF-Talk
Subject: Form.Fieldnames and MX


Ok, what happened? I used to be able to loop through form.fieldnames to
create a list of all of the fields and then I could write my processor
script. CFMX, on the other hand, gives me the following:

Element FIELDNAMES is undefined in FORM.

Anybody have any ideas?

Cutter


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Jim Campbell
Can you turn on debugging?  If so, what does the debugger window tell you
about the Form variables in the Scope Variables section?

- Jim

-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 8:29 AM
To: CF-Talk
Subject: Form.Fieldnames and MX


Ok, what happened? I used to be able to loop through form.fieldnames to
create a list of all of the fields and then I could write my processor
script. CFMX, on the other hand, gives me the following:

Element FIELDNAMES is undefined in FORM.

Anybody have any ideas?

Cutter


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread Cutter (CF_Talk)
I wasn't aware of this one. I attempted something along the lines of:

#structkeylist(form)#

But was not given any results. Would this only give me results for 
fields containing a value?

I'm just trying to get the names of every form field...

Cutter

Tim Blair wrote:

>>Ok, what happened? I used to be able to loop through 
>>form.fieldnames 
>>
>>
>
>Try structkeylist(form)
>
>Tim.
>
>
>---
>OUR NEW SITE IS NOW LIVE
>Visit our new website at http://www.rawnet.com/ and
>race around the beautiful Bracknell streets at
>http://xmas.rawnet.com/
>---
>Tim Blair
>Web Application Engineer, Rawnet Limited
>Direct Phone : +44 (0) 1344 393 441
>Switchboard : +44 (0) 1344 393 040
>---
>This message may contain information which is legally
>privileged and/or confidential.  If you are not the
>intended recipient, you are hereby notified that any
>unauthorised disclosure, copying, distribution or use
>of this information is strictly prohibited. Such
>notification notwithstanding, any comments, opinions,
>information or conclusions expressed in this message
>are those of the originator, not of rawnet limited,
>unless otherwise explicitly and independently indicated
>by an authorised representative of rawnet limited.
>---
>
>
>
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread Cutter (CF_Talk)
Though Form is selected for Display, nothing for Form is coming up on 
the action page in the debugging info. (Maybe because no data is being 
passed?)

Cutter

Andy Ousterhout wrote:

>Turn on Display Variables in CF Admin and see what is getting passed
>
>-Original Message-
>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 13, 2003 8:29 AM
>To: CF-Talk
>Subject: Form.Fieldnames and MX
>
>
>Ok, what happened? I used to be able to loop through form.fieldnames to
>create a list of all of the fields and then I could write my processor
>script. CFMX, on the other hand, gives me the following:
>
>Element FIELDNAMES is undefined in FORM.
>
>Anybody have any ideas?
>
>Cutter
>
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread Willy Ray
You sure your method attribute is set to 'POST'? 

>>> [EMAIL PROTECTED] 02/13/03 08:26AM >>>
Though Form is selected for Display, nothing for Form is coming up on 
the action page in the debugging info. (Maybe because no data is being

passed?)

Cutter

Andy Ousterhout wrote:

>Turn on Display Variables in CF Admin and see what is getting
passed
>
>-Original Message-
>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
>Sent: Thursday, February 13, 2003 8:29 AM
>To: CF-Talk
>Subject: Form.Fieldnames and MX
>
>
>Ok, what happened? I used to be able to loop through form.fieldnames
to
>create a list of all of the fields and then I could write my
processor
>script. CFMX, on the other hand, gives me the following:
>
>Element FIELDNAMES is undefined in FORM.
>
>Anybody have any ideas?
>
>Cutter
>
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Justin Hansen
I had a similar problem trying to put the form scope in wddx packet. For me, it keep 
dropping fields at random. I would be nice to know why this issue exists. Any MX Gods 
out there care to explain why the form struct keeps dropping vars when you try to wddx 
it? 

This is how I got around it.. 

 








Justin Hansen
--
Uhlig Communications
Systems Engineer
--
[EMAIL PROTECTED]
913-754-4273 Office
816-695-4045 Mobile
--


-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:26 AM
To: CF-Talk
Subject: Re: Form.Fieldnames and MX


Though Form is selected for Display, nothing for Form is coming up on 
the action page in the debugging info. (Maybe because no data is being 
passed?)

Cutter

Andy Ousterhout wrote:

>Turn on Display Variables in CF Admin and see what is getting passed
>
>-Original Message-
>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, February 13, 2003 8:29 AM
>To: CF-Talk
>Subject: Form.Fieldnames and MX
>
>
>Ok, what happened? I used to be able to loop through form.fieldnames to
>create a list of all of the fields and then I could write my processor
>script. CFMX, on the other hand, gives me the following:
>
>Element FIELDNAMES is undefined in FORM.
>
>Anybody have any ideas?
>
>Cutter
>
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Dave Watts
> Ok, what happened? I used to be able to loop through 
> form.fieldnames to create a list of all of the fields 
> and then I could write my processor script. CFMX, on 
> the other hand, gives me the following:
> 
> Element FIELDNAMES is undefined in FORM.

This variable still exists in CFMX, whenever the page has received an HTTP
POST with data. So, you probably don't have a POST from your HTML form.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread Cutter (CF_Talk)
Yes, method="post"

Cutter

Willy Ray wrote:

>You sure your method attribute is set to 'POST'? 
>
>  
>
[EMAIL PROTECTED] 02/13/03 08:26AM >>>


>Though Form is selected for Display, nothing for Form is coming up on 
>the action page in the debugging info. (Maybe because no data is being
>
>passed?)
>
>Cutter
>
>Andy Ousterhout wrote:
>
>  
>
>>Turn on Display Variables in CF Admin and see what is getting
>>
>>
>passed
>  
>
>>-Original Message-
>>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
>>Sent: Thursday, February 13, 2003 8:29 AM
>>To: CF-Talk
>>Subject: Form.Fieldnames and MX
>>
>>
>>Ok, what happened? I used to be able to loop through form.fieldnames
>>
>>
>to
>  
>
>>create a list of all of the fields and then I could write my
>>
>>
>processor
>  
>
>>script. CFMX, on the other hand, gives me the following:
>>
>>Element FIELDNAMES is undefined in FORM.
>>
>>Anybody have any ideas?
>>
>>Cutter
>>
>>
>>
>>
>>
>
>
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Mark A. Kruger - CFG
Also - I'd avoid using this variable for the sake of future compatibility.
It has the feel of something that might to be depricated.  Now that the FORM
scope is a structure, the fieldnames variable is redundant. Use
StructKeyList( ).

-Mark

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 13, 2003 9:42 AM
To: CF-Talk
Subject: RE: Form.Fieldnames and MX


> Ok, what happened? I used to be able to loop through
> form.fieldnames to create a list of all of the fields
> and then I could write my processor script. CFMX, on
> the other hand, gives me the following:
>
> Element FIELDNAMES is undefined in FORM.

This variable still exists in CFMX, whenever the page has received an HTTP
POST with data. So, you probably don't have a POST from your HTML form.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444


~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Tony Weeg
how about a snippet of the code?

...tony

Tony Weeg
Senior Web Developer
UnCertified Advanced ColdFusion Developer
Information System Design
Navtrak, Inc.
Mobile workforce monitoring, mapping & reporting
www.navtrak.net
410.548.2337 

-Original Message-
From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, February 13, 2003 10:41 AM
To: CF-Talk
Subject: Re: Form.Fieldnames and MX


Yes, method="post"

Cutter

Willy Ray wrote:

>You sure your method attribute is set to 'POST'? 
>
>  
>
>>>>[EMAIL PROTECTED] 02/13/03 08:26AM >>>
>>>>
>>>>
>Though Form is selected for Display, nothing for Form is coming up on 
>the action page in the debugging info. (Maybe because no data is being
>
>passed?)
>
>Cutter
>
>Andy Ousterhout wrote:
>
>  
>
>>Turn on Display Variables in CF Admin and see what is getting
>>
>>
>passed
>  
>
>>-Original Message-
>>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
>>Sent: Thursday, February 13, 2003 8:29 AM
>>To: CF-Talk
>>Subject: Form.Fieldnames and MX
>>
>>
>>Ok, what happened? I used to be able to loop through form.fieldnames
>>
>>
>to
>  
>
>>create a list of all of the fields and then I could write my
>>
>>
>processor
>  
>
>>script. CFMX, on the other hand, gives me the following:
>>
>>Element FIELDNAMES is undefined in FORM.
>>
>>Anybody have any ideas?
>>
>>Cutter
>>
>>
>>
>>
>>
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread Willy Ray
Hate to ask this one:  You're not invoking the action page directly
without hitting submit off the form page, are you?  (*cringe*).

>>> [EMAIL PROTECTED] 02/13/03 08:40AM >>>
Yes, method="post"

Cutter

Willy Ray wrote:

>You sure your method attribute is set to 'POST'? 
>
>  
>
[EMAIL PROTECTED] 02/13/03 08:26AM >>>


>Though Form is selected for Display, nothing for Form is coming up on

>the action page in the debugging info. (Maybe because no data is
being
>
>passed?)
>
>Cutter
>
>Andy Ousterhout wrote:
>
>  
>
>>Turn on Display Variables in CF Admin and see what is getting
>>
>>
>passed
>  
>
>>-Original Message-
>>From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]] 
>>Sent: Thursday, February 13, 2003 8:29 AM
>>To: CF-Talk
>>Subject: Form.Fieldnames and MX
>>
>>
>>Ok, what happened? I used to be able to loop through form.fieldnames
>>
>>
>to
>  
>
>>create a list of all of the fields and then I could write my
>>
>>
>processor
>  
>
>>script. CFMX, on the other hand, gives me the following:
>>
>>Element FIELDNAMES is undefined in FORM.
>>
>>Anybody have any ideas?
>>
>>Cutter
>>
>>
>>
>>
>>
>
>

~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-02-13 Thread E. Keith Dodd
Can't find my original code, but had this problem and found had to duplicate
form first, then wddx. (Without this, it got only a random 10 fields.) I've
no answer as to why, though.
Here is archive link:
http://www.mail-archive.com/cf-talk@houseoffusion.com/msg120167.html
I'm thinking that a recent updater may have fixed this problem, but not
sure.

E. Keith Dodd
Wings of Eagles Services
www.wingserv.com
- Original Message -
From: "Justin Hansen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 10:36 AM
Subject: RE: Form.Fieldnames and MX


> I had a similar problem trying to put the form scope in wddx packet. For
me, it keep dropping fields at random. I would be nice to know why this
issue exists. Any MX Gods out there care to explain why the form struct
keeps dropping vars when you try to wddx it?
>
> This is how I got around it..
>
>  
> 
> 
> 
> 
> 
>
> 
>
> Justin Hansen
> --
> Uhlig Communications
> Systems Engineer
> --
> [EMAIL PROTECTED]
> 913-754-4273 Office
> 816-695-4045 Mobile
> --
>
>
> -Original Message-
> From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 9:26 AM
> To: CF-Talk
> Subject: Re: Form.Fieldnames and MX
>
>
> Though Form is selected for Display, nothing for Form is coming up on
> the action page in the debugging info. (Maybe because no data is being
> passed?)
>
> Cutter
>
> Andy Ousterhout wrote:
>
> >Turn on Display Variables in CF Admin and see what is getting passed
> >
> >-Original Message-
> >From: Cutter (CF_Talk) [mailto:[EMAIL PROTECTED]]
> >Sent: Thursday, February 13, 2003 8:29 AM
> >To: CF-Talk
> >Subject: Form.Fieldnames and MX
> >
> >
> >Ok, what happened? I used to be able to loop through form.fieldnames to
> >create a list of all of the fields and then I could write my processor
> >script. CFMX, on the other hand, gives me the following:
> >
> >Element FIELDNAMES is undefined in FORM.
> >
> >Anybody have any ideas?
> >
> >Cutter
> >
> >
> >
>
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




RE: Form.Fieldnames and MX

2003-02-13 Thread Stephen Hait
Could this have something to do with MX treating this somewhat 
differently in terms of case than earlier versions?

This is from a run down I saw recently about issues involved with 
upgrading to MX at:
http://www.cfconf.org/cfun-02/talks/cfun02_migrating_from_cf5.ppt

Form.FiledNames
- returns Form.FieldNames in the order in which they were 
created and not in All Uppercase.

Stephen

> Also - I'd avoid using this variable for the sake of future
> compatibility. It has the feel of something that might to be
> depricated.  Now that the FORM scope is a structure, the fieldnames
> variable is redundant. Use StructKeyList( ).
> 
> -Mark
> 
> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 9:42 AM
> To: CF-Talk
> Subject: RE: Form.Fieldnames and MX
> 
> 
> > Ok, what happened? I used to be able to loop through
> > form.fieldnames to create a list of all of the fields
> > and then I could write my processor script. CFMX, on
> > the other hand, gives me the following:
> >
> > Element FIELDNAMES is undefined in FORM.
> 
> This variable still exists in CFMX, whenever the page has received
> an HTTP POST with data. So, you probably don't have a POST from your
> HTML form.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444
> 
> 
> 
~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Get the mailserver that powers this list at http://www.coolfusion.com

Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4




Re: Form.Fieldnames and MX

2003-12-31 Thread Scott Brady
Gregory I. Hayes wrote:

> >Ok, what happened? I used to be able to loop through form.fieldnames to
> >create a list of all of the fields and then I could write my processor
> >script. CFMX, on the other hand, gives me the following:
> >
> >Element FIELDNAMES is undefined in FORM.
> >
> >Anybody have any ideas?
> >
> >Cutter
> >I just ran into this problem while to code a Paypal script. Has a 
> solution been found for this problem ?
>
I don't recall having this problem in MX.  However, you should be able 
to treat the FORM scope like a structure and loop over it as a collection:

#i# = #FORM[i]#


I'm writing that off the top of my head, but it should work.

Scott

-- 
---
Scott Brady
http://www.scottbrady.net/
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]