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

Commented Issue: 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: Whew!

Viewing all articles
Browse latest Browse all 6517

Trending Articles



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