Sie sind auf Seite 1von 1

<script type="text/javascript">

ExecuteOrDelayUntilScriptLoaded(init,'sp.js');
var currentUser;
function init(){
this.clientContext = new SP.ClientContext.get_current();
this.oWeb = clientContext.get_web();
currentUser = this.oWeb.get_currentUser();
this.clientContext.load(currentUser);
this.clientContext.executeQueryAsync(Function.createDelegate(this,this.onQue
rySucceeded), Function.createDelegate(this,this.onQueryFailed));
}
function onQuerySucceeded() {
document.getElementById('userLoginName').innerHTML= <b>"Dear " + currentUser.get
_title()+ ", Welcome to SiteOne!"+
"Please use this site to maintain and share documents with other members of your
team. "
+"Note: Please add version comments to make it easy for your colleagues to acces
s the correct document version."</b?
}
function onQueryFailed(sender, args) {
alert('Request failed. \nError: ' + args.get_message() + '\nStackTrace: ' +
args.get_stackTrace());
}
</script>
<div><span id="userLoginName"></span>
<span id="userId"></span>
<span id="userTitle"></span>
<span id="userEmail"></span>
</div