« Return to the main article
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.
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.