문제

I am trying to get JSOM to work on a basic aspx page created in Sharepoint Designer. But I have been unable to get SP.ClientContext to work, it is undefined and I get the error: "Sys.InvalidOperationException: Cannot find current web URL information on the page." I have tried using both executeFunc and and SP.SOD.executeOrDelayUntilScriptLoaded with no success. And typing _spPageContextInfo into the console returns undefined so I'm thinking that I need to add something else to my webpage. I added all the js calls included in an ootb SharePoint page so that shouldn't be in issue either.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top