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.

General Questions /

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

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

jQuery is not defined


Go to End
Reply


10 Posts   25077 Views

Avatar
kcd

Community Member, 54 Posts

12 November 2010 at 3:14pm

Is it good practice to load jquery from sapphire?

<% require javascript(sapphire/thirdparty/jquery/jquery.js) %>


or

Requirements::javascript(SAPPHIRE_DIR . '/thirdparty/jquery/jquery.js');

Avatar
Willr

Forum Moderator, 5513 Posts

12 November 2010 at 5:26pm

Is it good practice to load jquery from sapphire?

Yes it is recommended to load this version as if you use modules such as forum, UDF (two off the top of my head) you won't have to include multiple versions of jQuery.

Go to Top