SP.SOD make sure the Scripts loaded properly. SP.SOD is defined in init.js and will be load in the HTML head section automatically.

learn more… | top users | synonyms

0
votes
2answers
84 views

Can't get People Picker value on 'Edit' form load

When opening a SharePoint EDIT form, I'm trying to capture a people picker value using JavaScript. Unfortunately, the people picker isn't loaded with data when I call .GetAllUserInfo. I'm using the ...
2
votes
1answer
2k views

Proper way to call multiple functions using SP.SOD.executeFunc

I need to make sure sp.js is loaded before I call several functions. I currently call them as follows in SP 2013. It works, but I suspect there is a better/more efficient way. ...
2
votes
2answers
1k views

executeFunc not working in Sharepoint 2013

I have this simple piece of code: <script type="text/javascript" src="AnotherLibrary.js" /> <script type="text/javascript"> SP.SOD.executeFunc('sp.js', 'SP.ClientContext', ...
1
vote
1answer
765 views

Custom .aspx as modal dialog not working: 'SP' is undefined

SharePoint 2013 server... I have created a custom aspx page for use as a modal dialog. I want this pop up to collect field values and return them to the form the pop up was called from. The pop up ...
2
votes
1answer
121 views

SharePoint 2013 and javascript

What is meaning of OnDemand scripts and what is not-on-demand scripts? In SharePoint 2013, when do we use SP.SOD.executeFunc and when to use ExecuteOrDelayUntilScriptLoaded ? What is best practice?