logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Edward Christie on Mon 10 Sep 2007 in response to Form Validator R3.0

Error in call to Validator.init

I get an error in the init function indicating that '$ is not defined.' I put
my call to this function in the form's onLoad event, as so:


Validator.init( 0, 'beforeForm');


beforeForm is defined in Pass-Thru HTML. I assume the error message is caused
by the last statement in the function.


init: function(f, s){
this.form=document.forms[f];
this.messages["date"]+=" "+this.DateFormat;
this.insert_summary_here = $(s);
}


Any help would be appreciated.