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

SP.SOD in the Masterpage

$
0
0

In a SP Online in the masterpage, I have a JS file that calls the following in document.ready.

SP.SOD.executeFunc('sp.runtime.js', null, function(){           

SP.SOD.executeFunc('sp.js', null, function(){               

SP.SOD.executeFunc('sp.publishing.js', null,GetNavigation);        

});     });


The code fails right in the first SP.SOD call.

I'm I using wrongly the SP.SOD? is there a step by step example how to use the SP.SOD in JS file associated to a masterpage?

Thank you




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>