1971 Posts in 1275 Topics by 607 members
|Go to End|
19 February 2010 at 2:36am
I have strange problem:
Silverstripe form validation is not working any more as soon as I add jquery manually in Page.ss by
I get following Error in Firefox when I press the send button of the form:
$("AngebotForm_AngebotForm").validateEmailField is not a function
it seems somehow jquery is not found. Perhaps the form validation add itÂ´s own jquery and that causes the trouble?
IÂ´ve created my form using a custom template as described here:
Many thanx for your help,
20 February 2010 at 9:56pm Last edited: 20 February 2010 9:56pm
form validation is done using protype by default. If you want to use jQuery form validation you need to create your own form (tutorial available: http://www.ssbits.com/using-jquery-for-form-validation/ ) or use the module UserForm 0.2.x to create a form.
Did you check your sites sourcecode in your browser after page is rendered? Though it's more comfy to use firebug's "console" tab.
Did you check for version missmatch of your and the implicit loaded jquery.js?
21 February 2010 at 2:52am
funny, i did it already exactly that way using the same tutorial. works fine for me.
28 February 2010 at 11:38pm
Try jQuery.noConflict() if you use jQuery together with PrototypeJS.
|Go to Top|