Well after trying a couple of things suggested here I've opted to approach this a little differently to avoid the multiple form issues ;). Thanks for all the input!
Bob -----Original Message----- From: Dave Phillips [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2008 3:52 PM To: cf-newbie Subject: RE: javascript not cooperating <p align=\"left\"><b><font face=\"Arial\" size=\"2\">GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them.</font></b></p>Bob, My first guess is you have your <form> tag inside of a <cfoutput query="Packets"> loop. If that query has more than one record, your form name "voting" is going to exist multiple times on your page which is going to cause you headaches in javascript. You can confirm this by taking the 'query' output off of your <cfoutput tag so that it will only display ONE form on the page. If everything works fine, then this is most likely the issue. If this is the case, you can do the following: <form .... name="voting_#Packets.currentRow#" Xonsubmit="return checkChoice(#Packets.currentRow#)" > Then in your js function, change it to: function checkChoice(iWhichForm) var oForm = document["voting_"+iWhichForm]; Now, in your function, everywhere you specify "voting." Change that to "oForm." This way, your function is always validating the correct form. Let us know how it goes... Dave ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:4227 Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
