Another issue - How can I apply javascript validations and functions to dynamically generated form fields which can be 10, 20, or 30 in number?
>Thanks for posting the final code. Way to go Jerry! >Zelda > >-----Original Message----- >From: Torrent Girl [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 14, 2006 9:20 AM >To: CF-Newbie >Subject: Re: Looping issue > > >Big thanks to Jerry Johnson for helping me to get this working and >thanks to everyone else for your input. > >You guys are awesome. > >Jerry even stayed up past his bedtime to help :) > > >Here is his solution if anyone else is interested: > > >what you need to do is: > >in page1, outside your loop, set a variable indicating how many >companies are allow per location <cfset numCompaniesPerLocation=10> > >in the page2, set a new variable at the top, j (the logical next letter >integer variable). > ><cfset j=((i-1)*numCompaniesPerLocation)+1> (this will then be 1 or 11 >or 21 depending on the loop) > >where you have <cfset i=i+1>, change that to <cfset j=j+1> replace all >of the i references in page2 with j > >(you can also move the unrolled 1-10 company code into its own loop, >from j to j+10, and get rid of 9/10s of your codebase) > >then increment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1888 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
