jcarousel plugin is not working in sitecore preview mode

折月煮酒 提交于 2019-12-12 11:05:41

问题


jcarousel plugin is working when we run the page on browser but if we run the same page in sitecore preview mode(In sitecore: Click on Presentation in the top menu. Click on Preview in the ribbon) then this plugin is not working. please let me know if you have solution that would be helpful.


回答1:


Which version of Sitecore do you use? I think the problem might be with jquery conflicting with prototype.

You can try to use jquery in noConflict mode:

var $j = jQuery.noConflict();

In nutshell, add this line before the place you initialize your jcarousel, e.g.:

var $j = jQuery.noConflict(); // switch jquery to noconflict mode

$j('.jcarousel').jcarousel(); // this is your initalization of jcarousel

More explanation in jquery conflicts with pageeditor article



来源:https://stackoverflow.com/questions/20680289/jcarousel-plugin-is-not-working-in-sitecore-preview-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!