Jump to:

23373 Posts in 18175 Topics by 2865 members

General Questions

SilverStripe Forums » General Questions » jQuery is not defined

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

Page: 1 2
Go to End
Author Topic: 24236 Views
  • kcd
    Avatar
    Community Member
    54 Posts

    Re: jQuery is not defined Link to this post

    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');

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: jQuery is not defined Link to this post

    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.

    24236 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.