4

Is there some reference to this subject?

Both methods return completely different objects.

1 Answer 1

7

GetCurrentCtx() can be run only in list views and gives you ContextInfo object with some useful properties. SP.ClientContext.get_current() gives you the javascript form of SPContext which you can use to retrieve, modfiy sharepoint stuff from javascript. So they are different things.

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.