Are you trying to attach a validator to forms on a page? build a validator?
AFI've Seen... Most validators are invoked by passing them a selector
that points to the forms (or will scan the dom for a predefine
"marker"), and the validator class will intercept the onSubmit and do
all the mambo-jumbo there, no need to specify a function or
anything....
Sorry if that's not what you needed... if its not, could you explain further?
On 11/3/08, TomWA007 <[EMAIL PROTECTED]> wrote:
>
> I would like to set the onSubmit of the form in question to execute a
> function within the class. This has been much harder than I would have
> expected.
>
> this.ReqForms.each(function(ReqForm, loc, ReqForms) {
> ReqForm.setProperty("onSubmit", "return this.ValidateForm()");
> }.bindWithEvent(this));
>
> I have also attempted setting it to "return
> myValidator.ValidateForm()". That is the name I use to instantiate the
> class.
>
> Thanks for any help
--
◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦◦
Ivanicus' Code Box
http://ivanicus.com/