I addressed the Radio buttons and the element retrieval issue by
lessening the restrictions you put on the prototype.elements function:

[code]
elements: function() {
var validator = this,
rulesCache = {};

// select all valid inputs inside the form (no submit or reset
buttons)
// workaround $Query([]).add until http://dev.jquery.com/ticket/2114
is solved

return $([]).add(this.currentForm.elements).filter(":input").not
(":submit, :reset, :image, [disabled]");
},
[/code]

I also had to comment out this section of the prototype.check
function:

[code]
if (this.checkable(element)) {
element = this.findByName( element.name )[0];
}
[/code]

It seems to be working great and it cycles through all of the input
elemens.

Hope this helps someone.

On Sep 16, 4:48 pm, ShrimpWagon <shrimpwa...@gmail.com> wrote:
> Is it that big of a problem that it can't cycle through each radio
> button independently? I noticed that the script starts by getting all
> of the filtered inputs. But then it cycles through each one and gets
> them again by name. Why can't you just use what was already retrieved
> without getting it by name?
>
> Also, it would be nice to have a pre validation handler that could run
> before any validation takes place. It could return true of false
> depending on if it should even continue with validation. This
> suggestion also applies to a pre submission handler. Would be nice to
> maybe do something before the form is submitted but after a successful
> form validation.

Reply via email to