Thursday, March 17, 2011

JQuery to find SharePoint Logged in User

Upload "jquery-1.3.2.min.js" & from code plex - "SPServices 0.6.0.js"

Add below lines in Javascript Tag & using $().SPServices.SPGetCurrentUser()

var thisUserAccount = $().SPServices.SPGetCurrentUser({
fieldName: "Name",
debug: false
});

var thisUserName = $().SPServices.SPGetCurrentUser({
fieldName: "Title",
debug: false
});

No comments:

Post a Comment