Guest User

Untitled

a guest
Dec 15th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. var baseUrl=window.location.protocol + "//" + window.location.host + _spPageContextInfo.webServerRelativeUrl;
  2. var clientContext = new SP.ClientContext;
  3. var oList = clientContext.get_web().get_lists().getByTitle(listTitle);
  4. clientContext.load(oList);
  5. clientContext.executeQueryAsync(success, failed)
Add Comment
Please, Sign In to add comment