Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

EnsureScriptFunc

$
0
0

I am trying to load a script file using EnsureScriptFunc function call as shown below:

RegisterSod('kendo.all.min.js', Srch.U.replaceUrlTokens("~sitecollection/_layouts/15/kendo.all.min.js"));
EnsureScriptFunc('kendo.all.min.js', "kendoDatePicker", function () {
showInterface();
});

This works in testing environment but when I deploy it in production environment, the breakpoint does not hitshowInterface()and kendo.all.min file is never loaded.

What could be causing this? Any pointers? As far as I know there are no dependencies and I can see the .js file in the correct folder/path.


Viewing all articles
Browse latest Browse all 7589

Trending Articles