Reputation: 181
When I setup Sitecore and use the Preview function, all the javascript cannot be loaded (like the pull down effect, overlay, etc.).
Just want to confirm if the preview function of sitecore does not support javascript? Otherwise, how to make it fixed? Anything I missed during setup? Thanks.
Upvotes: 1
Views: 597
Reputation: 16990
The better way to do fix this is to write your JavaScript in isolated scopes using current best practices and you will never have issues with your code regardless of which library is used.
Avoiding jQuery’s noConflict() Mode with Prototype and Sitecore
var Example = {};
(function($){
Example.test = function(){
$("#worker").remove();
}
$(function(){ // domloaded shortcut
Example.test();
});
})(jQuery);
Upvotes: 1
Reputation: 1396
A couple things to check:
Upvotes: 1