Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var baseUrl=window.location.protocol + "//" + window.location.host + _spPageContextInfo.webServerRelativeUrl;
- var clientContext = new SP.ClientContext;
- var oList = clientContext.get_web().get_lists().getByTitle(listTitle);
- clientContext.load(oList);
- clientContext.executeQueryAsync(success, failed)
Add Comment
Please, Sign In to add comment