Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » BUG: Livequery being called before jquery is loaded in DOM + Uploadify

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 993 Views
  • Ryan M.
    Avatar
    Community Member
    309 Posts

    BUG: Livequery being called before jquery is loaded in DOM + Uploadify Link to this post

    Downloaded and installed latest versions of DOM + Uploadify, I'm getting warning messages in the js console saying that jquery isn't defined.

    Upon looking at the source code, it looked like livequery was being loaded before jquery, triggering the problem. I then looked at the files for both DOM and Uploadify, and discovered that while the Uploadify FieldHolder function has the requirement call for jquery, the DOM constructor actually didn't have it at all!

    So I fixed the problem by adding this in the DOM constructor right before all the other js scripts are loaded.

    Requirements::javascript(THIRDPARTY_DIR.'/jquery/jquery.js');

    I'm not sure if UncleCheese omitted it for some reason or not, but please give me a heads up if adding this in breaks anything.

    993 Views
Page: 1
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.