cancel
Showing results for 
Search instead for 
Did you mean: 

Share header template - Jquery Dependencies

nikes
Champ on-the-rise
Champ on-the-rise
Hello,

In alfresco Share header template, i was trying to implement an jquery code. I am using jquery-ui function Sortable. But this gives me Error in IE as function not supported and sortable not found, whereas the same code works in chrome. Do alfresco has any jquery dependencies. How can i use sortable in share header template.

I have used jquery-ui version 1.11

Thanks.
3 REPLIES 3

ddraper
World-Class Innovator
World-Class Innovator
In the Alfresco version you have listed in your profile (4.2.f) JQuery is used for the the calendar site page. I think that you'll also find that an earlier version is included on every page, you can check by viewing the page source (right-click in browser) and searching for JQuery, but I'm pretty sure there's a version on every page - but it won't be v1.11.

nikes
Champ on-the-rise
Champ on-the-rise
Thanks for your response!

I have a customisation requirement of including drag and drop ability for which i am using Sortable function which is included in Jquery-ui framework. jquery-ui version used is 1.11.

However when I include this latest jquery-ui.js file in share header file it throws error in console as 'Error: multipleDefine in dojo.js'. Even the Header menu bar goes blank.

Also, I saw we already have a jquery-ui.js file which is an older version. Is there any way from which i can avoid conflicts between the two file.

ddraper
World-Class Innovator
World-Class Innovator
I'd recommend Googling for "multiple versions of jquery ui on same page" - it seems to have a number of hits that should help you to resolve this problem.