Linked Questions

17
votes
5answers
48k views

ExecuteOrDelayUntilScriptLoaded not executing after page publish

In SharePoint 2013 I have a page that is using the Script Editor web part. In the script editor web part I have the following: ExecuteOrDelayUntilScriptLoaded(startIt, "sp.js"); function startIt() { ...
10
votes
4answers
25k views

Unable to get property 'get_current' of undefined or null reference

$(document).ready(function () { var count = 0; retrieveCurrentListProperties(); function retrieveCurrentListProperties() { clientContext = new SP....
9
votes
3answers
33k views

ExecuteOrDelayUntillScriptLoaded(codetorun,SP.js) for entire script function

If you look at below code, I have used executeordelayuntillscriptloaded at start of my script so that it will run only after that file is loaded. But this breaks some functionality. Can you check this ...
4
votes
4answers
15k views

Loading jQuery and jQuery UI within JSLink script

How would I go about using jQuery and jQuery UI (mainly the sortable component) within a JSLink script. So far I've tried several methods of dynamically loading javascript within the JSLink script ...
0
votes
1answer
4k views

Include JS Files in JS Link File

Is there a way to include another .JS file into a JSLink file? I have made mini framework to render list views which I want to source out in a seperate file and then add a normal JSLink file for ...
0
votes
1answer
3k views

Cannot read property 'get_current' of undefined

I am using this code: "use strict" var BasicJSOM = window.BasicJSOM || {}; BasicJSOM.Crud = BasicJSOM.Crud || {}; $(function() { BasicJSOM.Crud.MainDemo = new BasicJSOM.Crud.Main(); SP.SOD....
2
votes
1answer
2k views

“Type SP.ULSTraceLevel has already been registered” error while applying javscript to NewForm.aspx

I have a custom list in which I want to apply the javascript in new form of that list. Javascript loads the user profile property of the entered user in the people picker control. I am getting ...
0
votes
1answer
1k views

Javascript execution delay until sp.js and ps.js loads

I am trying to get project list from my project portal using JavaScript. I wrote a script that should do the job: var projects; // Geting JS library responsible for Project API var script = ...
-1
votes
1answer
635 views

Fetch the SharePoint field values using SPServices in a EditForm.aspx in SP 2010 Listform

I need to fetch the SharePoint field values using SPServices in a EditForm.aspx in my SP 2010 Listform. As far as I know, some examples, one of them - I tried below - used to fetch the current logged ...
0
votes
2answers
735 views

SP.js is not loaded in page

I am using this piece of code on a couple of sites within my SharePoint Online environment: SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function(){ alert('test'); //my code follows }); ...
0
votes
1answer
433 views

Need to call SP.SOD.registerSod twice?

I have created two functional Units on my application page. One comes along in a separate script, the other is embedded via script editor web part. The external script is called fiirst all the time ...