Wasn't that, I screwed up something in the HTML. BTW the return will throw an error as well.
> -----Original Message----- > From: Charlie Griefer [mailto:[EMAIL PROTECTED] > Sent: Sunday, January 22, 2006 9:41 PM > To: CF-Community > Subject: Re: JS Question > > i think you need to say: > > thisForm.onsubmit = return checkForm; > > need the return keyword in there (?) > > On 1/22/06, Tim Heald <[EMAIL PROTECTED]> wrote: > > Can anyone tell me why this isn't working in IE? > > > > Works fine in FF, but it's an IE only error, and of course > you can't > > get crap in IE for an error message. > > > > var thisForm = document.forms["qAction"]; > > var myField = thisForm.coop_int; > > > > function checkForm(){ > > if(myField[0].checked){ > > return true > > }else if(myField[1].checked){ > > alert("ladlsjd"); > > return false > > }else{ > > alert("Please > choose Yes or No."); > > return false > > } > > } > > > > thisForm.onsubmit = checkForm; > > > > > > TIA > > > > Tim > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:5:193733 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
