“…an inner function always has access to the
vars and parameters of its outer function, even
after the outer function has returned.”
-- Douglas Crockford
In Non Closure variable value will be lost once function return. And whenever it is called it will be assigned new value. Below is example of non closure.
function NonClosureFunct(){
var counter = 0;
counter += 1;
return counter;
}
Closure...Read more
Wednesday, June 28, 2017
Monday, June 12, 2017
SPUtility.js is a JavaScript library used to make modifications to SharePoint's list forms
SPUtility.js is a JavaScript library used to make modifications to SharePoint's list forms (NewForm.aspx and EditForm.aspx in a survey, custom list or library). It works with SharePoint 2007, 2010, and 2013 (including SharePoint Online / Office 365).
SPUtility.GetSPField('Title').SetValue('Hello world!');
Features:
Set or get field values in Document Libraries, all sorts of List forms (custom...Read more
Posted in JS, SharePoint