Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

Commented Unassigned: On Sharepoint 2013 SPUserid error on Alpha 7 [10142]

$
0
0
THe following function is throwing error on _SPUserid
and it should be using the _spPageContextInfor.userid -- so the test must be wrong for SharePoint 2013

// SharePoint 2010 gives us a context variable
if(typeof _spPageContextInfo !== "undefined") {
this.thisSite = _spPageContextInfo.webServerRelativeUrl;
this.thisList = _spPageContextInfo.pageListId;
this.thisUserId = _spPageContextInfo.userId;
// In SharePoint 2007, we know the UserID only
} else {
this.thisSite = "";
this.thisList = "";
this.thisUserId = _spUserId;
}

} // End of function SPServicesContext

Comments: Earl: I just tested again in a SharePoint 2013 environment and it worked fine. Can you give me some more info about what you're doing when you get the error? M.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>