I get the error :
Object doesn't support property or method 'set_formDigestHandlingEnabled'
when I try to get the current SPContext
object from javascript code in an Office 365 site.
I am using a script editor web part and getting the context to do further operations
var cntxt;
.
.
.
cntxt = SP.ClientContext.get_current()
Has anyone faced this before?
cntxt = new SP.ClientContext(currentUrl);
?