Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

SS 2.4x can prototype be replace fully with jquery yet?


Go to End


2 Posts   1153 Views

Avatar
DsX

Community Member, 178 Posts

11 November 2010 at 9:48am

SS 2.4x can prototype be replace fully with jquery yet?
and if so how?

I would like to only load and use jquery js files, but see that prototype is still being loaded. Does the base SS 2.4x still include prototype, or am I seeing things being included by mods?

Avatar
Howard

Community Member, 215 Posts

11 November 2010 at 11:09am

2.4 still uses prototype for the CMS and form validation. A large part has been rewritten into jQuery but that is currently unstable and won't be released until SS 3.0.

For front end form fields I usually turn off the built in validation and use some other kind - often jQuery.validate.

Have a look at this tutorial for an explantation of how to do it http://ssbits.com/tutorials/2009/using-jquery-for-form-validation/