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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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

jQuery is not defined


Go to End


12 Posts   30694 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, 5523 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.

Avatar
[Rob]

Community Member, 3 Posts

21 September 2017 at 12:07pm

I have been noticed, If JS codes haven not been changed, you've got this sort of errors.
it could be possibly from the bad html mark up (e.g. missing div or '<div' ) something like this :)

Avatar
ginkgo88

Community Member, 1 Post

22 September 2017 at 4:14pm

Go to Top