Isaac,

Isaac,

what about the "repeater" attribute of the <cfformgroup> - it seems to
indicate that it offers some releif for query driven forms and the recompile
issue.

-Mark

-----Original Message-----
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Monday, May 02, 2005 11:30 AM
To: CF-Talk
Subject: Re: cfform and checkboxes


> I like to create a form with checkboxes that list items
> from a database.  I
> store the ID in the value field and handle the list or
> array when it's
> posted.

> I cannot seem to do the same thing with a flash form and
> checkboxes.  It
> won't allow me to instantiate multiple checkboxes with the
> same name. Is
> there a way around this limitation?

Yes and no.

The current version of flash forms doesn't support multiple checkboxes
with the same name, so you'd have to provide a different name for each
checkbox, i.e.

<cfinput name="check_#itemid#">

Then on the form action page, you would need to loop over the item_id
values from your database again to retreive the results... Or you
could theoretically bind the checkboxes to an ActionScript function
that would update a hidden form field with the values of all the
checked boxes. (I've not worked with the flash forms myself, so I
don't know how difficult that would be to accomplish.)

While this will work (although it's more work in your cf/as code),
unless your list of items from your database is pretty close to
static, this will force the server to recreate the flash movie on each
request, which means loading it will continue to be slow rather than
speeding up after the first request due to the availability of a
cached swf.

s. isaac dealey   954.522.6080
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205280
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to