RE: Re: Check boxes! dynamic fields??
Thanks On the first page the fields are static. ie Field1 Field2 I can query the database with "Select #Fields# from Table_name" but i cant display the fields cause "Fields" is a list and cant get it to break it with cfloop --- Original Message --- "Billy Cravens" <[EMAIL PROTECTED]> Wrote on Wed, 5 Apr 2000 16:21:08 -0500 -- A couple of ways (off the top of my head): 1. dynamically build a list using javascript, whenever a box is checked. When box is checked (document.formname.fieldname.checked == true), add a value to a list. When a box gets unchecked, remove its value from the list. Pass the list you've built through a hidden form field, then loop through this list on the same page. 2. give the checkbox a naming convention that you can parse over. IE, call it check#id#, or whatever. Then on the next page, do some processing on all fields that begin with check..like: --- Billy Cravens [EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. - Sent using MailStart.com ( http://MailStart.Com/welcome.html ) The FREE way to access your mailbox via any web browser, anywhere! -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: Check boxes! dynamic fields??
A couple of ways (off the top of my head): 1. dynamically build a list using javascript, whenever a box is checked. When box is checked (document.formname.fieldname.checked == true), add a value to a list. When a box gets unchecked, remove its value from the list. Pass the list you've built through a hidden form field, then loop through this list on the same page. 2. give the checkbox a naming convention that you can parse over. IE, call it check#id#, or whatever. Then on the next page, do some processing on all fields that begin with check..like: --- Billy Cravens [EMAIL PROTECTED] -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Check boxes! dynamic fields??
Hello all, I am using static check boxes, which are field names is the database, and according to what the user checks , they will see only those fields on the next page with data. I am having problem with displaying the data as it is in a single #Variable# , i tried this #x# but didnt work How can i do this? Appretiate it! Thanks Joe -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body. - Sent using MailStart.com ( http://MailStart.Com/welcome.html ) The FREE way to access your mailbox via any web browser, anywhere! -- Archives: http://www.eGroups.com/list/cf-talk To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.