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#" onsubmit="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:4222
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15

Reply via email to