Thanks for the insight guys.

I will use listSort() before processing the form.FieldNames.  This is better 
than relying on DOMs and such to do the ordering.

Chad


> -----Original Message-----
> From: Qing Xia [mailto:txiasum...@gmail.com]
> Sent: Thursday, January 07, 2010 11:42 AM
> To: cf-talk
> Subject: Re: form.FieldNames
> 
> 
> Additionally, if your form consists of radio buttons which only exist if
> users choose something, then your fieldnames list can be out of order when
> those radio button fields go missing.
> 
> On Thu, Jan 7, 2010 at 11:23 AM, Barney Boisvert
> <bboisv...@gmail.com>wrote:
> 
> >
> > I would expect the order to be the same as the order that the fields
> > are submitted to the server (which, in turn, should be the same as the
> > DOM order of the form elements), but if I wouldn't rely on that
> > behaviour.  If you need them in a specific order, best to order them
> > yourself on the server.  This is especially true if you have some sort
> > of non-HTML (or impure-HTML) interface, since any sort of dynamic
> > scripting (e.g. JavaScript) can potentially mutate the actual form
> > submission in an arbitrary way.
> >
> > cheers,
> > barneyb
> >
> > On Thu, Jan 7, 2010 at 8:17 AM, Chad Gray <cg...@careyweb.com> wrote:
> > >
> > > How is the order of the elements in #FORM.fieldNames# determined?
> Could
> > it be different and not well structured?
> > >
> > > Like if I have a form with text inputs named foo1, foo2, foo3.
> > >
> > > Will #FORM.fieldNames# always be:
> > >
> > > Foo1,foo2,foo3?
> > >
> > > Or could it be ordered different?
> > >
> > > Thanks,
> > > Chad
> > >
> > >
> > >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329466
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to