Jump to:

23379 Posts in 18298 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » ss2.4 beta, i18n, prototype and jQuery noconflict

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: 2436 Views
  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: ss2.4 beta, i18n, prototype and jQuery noconflict Link to this post

    I'm just wondering why it can't find the separator? It's a div on LeftAndMain.ss... maybe prototype does not get loaded and that's why $('separator') returns null? Just a thought.

  • Kalileo
    Avatar
    Community Member
    127 Posts

    Re: ss2.4 beta, i18n, prototype and jQuery noconflict Link to this post

    The problem I had seen must have been from the upgrade 2.4 alpha to 2.4 beta.

    After I made a fresh install of 2.4 beta
    - plus all modules and widgets as before
    - plus all code changes I had made before
    - plus re-importing the sitetree,
    the 2.4 beta still worked fine, no problems

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: ss2.4 beta, i18n, prototype and jQuery noconflict Link to this post

    Thankx for the answer it helped me get one step further, but I still have the problem that my Newsletter Module or UserDefinedForms loads an extra jQuery file at the end of the rest of the requirements that messes my code up (and Requirements::clear(); does not help me get rid of it)

    I will try and find a way to extend the class and put the clear function there, but then I probably also have to crete my own validation there....

    I will also put a post in the other modules forum, and hope for an answer there...

    EDIT: Got it, I just have to require the same jQuery file the module requires and put that one in the right spot in my code. Somehow I do not like it but I can live with it

  • MateuszU
    Avatar
    Community Member
    89 Posts

    Re: ss2.4 beta, i18n, prototype and jQuery noconflict Link to this post

    Sorry for hijacking your thread
    Did you know you can always Requirements::block one specific file? Quite handy.

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: ss2.4 beta, i18n, prototype and jQuery noconflict Link to this post

    Tried Requirements::clear() but that did not work - I guess because the Subscription Page is a descendant of Page, after that I stopped trying

    NP with the hijacking

    2436 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.