When you are using Site URL to get ClientContext use 'new' keyword while define else you will see error...
this.set_formDigestHandlingEnabled
example.
this.set_formDigestHandlingEnabled
example.
$(document).ready(function () {
//get context
context = new SP.ClientContext(siteURL);
web = context.get_web();
});
No comments:
Post a Comment
Your feedback is always appreciated. I will try to reply to your queries as soon as time allows.Please don't spam,spam comments will be deleted upon reviews.