From: David <da...@df...> - 2004-04-24 10:15:11
|
Hello, thanks for the report and sorry for the late response at first! Which version did you use? Large parts of the 2.0.0RC* versions have been rewriten and he validation process was changed fundamentally. From a quick look I'd say that it's been fixed in the developement version but I'd appreciate if you can confirm that. (if you don't want to check out the latest version from svn, there's also a snapshot in the download section.) - david On Wed, 31 Mar 2004 15:56:30 +0100 "Joao Campos" <joa...@ho...> wrote: > Or at least IE is. It seems that when you only have 1 radio button, > you can't check if it's checked by using the same code as when you > have several buttons. The following works (don't mind the > errorMessages.push('$message') bit, I hacked formsess to display all > error messages instead of breaking on the first one) > > > var radiogroup = tf['$fname']; > var itemchecked = false; > if (!radiogroup.checked) { > for(var j = 0 ; j < radiogroup.length ; ++j) { > if(radiogroup[j].checked) { > itemchecked = true; > break; > } > } > if(!itemchecked) { > errorMessages.push('$message'); > } > } |