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


Reply

10 Posts   24811 Views

Avatar
kcd

12 November 2010 at 3:14pm Community Member, 54 Posts

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

12 November 2010 at 5:26pm Forum Moderator, 5511 Posts

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.