vendredi 19 décembre 2014

How to get ownersite title with using context.executequeryasync without asyc?



I want to get owner site title without async. How i can do?



var GetOwnerSiteTitle = function(){
var context = new SP.ClientContext();
var groupCollection = context.get_web();
var group = groupCollection.get_associatedOwnerGroup();
context.load(group);
context.executeQueryAsync(function(){
console.log(group.getTitle());
}, function (){
console.log('fail');
});
};







0 commentaires:

Enregistrer un commentaire