Good point Ben. Thanks.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Monday, May 01, 2006 9:01 AM
To: CF-Talk
Subject: RE: More of a JS Question/Forms


Andy,

One caveat to the FORM.fieldnames, that has killed me a few times... If you
are Param'ing stuff on the server, in the form scope

Ex. <cfparam name="FORM.file_delete" type="numeric" default="0" />

And "file_delete" is NOT submitted to the form (ie. checkbox is not
checked), then "file_field" will not be in the fieldnames list. A slightly
better solution might be to loop over the form scope via a collection loop.

........................
Ben Nadel
www.bennadel.com
-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED]
Sent: Monday, May 01, 2006 9:35 AM
To: CF-Talk
Subject: RE: More of a JS Question/Forms

FORM.fieldnames is a built in variable containing a commadelimited list of
all of the FORM fields. You could loop over that and check to see if any/all
of the fields are empty.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239164
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to