Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is there some reference to this subject?

Both methods return completely different objects.

share|improve this question

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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