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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

BUG: Livequery being called before jquery is loaded in DOM + Uploadify


Reply


1076 Views

Avatar
Ryan M.

Community Member, 309 Posts

15 May 2011 at 1:07pm

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.