I had through this website Get manager of current SharePoint user using SPServices and GetUserProfileByName[^].Though I couldn't get the result and lagging on understanding the concept.I don't get any clear picture. Please let me know the logics and about the solution.
$().SPServices({
operation: "GetUserProfileByName",
async: false,
AccountName: userName,
completefunc: function (xData, Status) {
managerName = $(xData.responseXML).text();
var managerLength = managerName.length;
var indexofManager = managerName.indexOf("Manager");
managerName = managerName.substring(indexofManager + 13, managerLength);
var indexOffalse = managerName.indexOf("false");
managerName = managerName.substring(0, indexOffalse);
For those code it shows xhr can't open.

Rathrola Prem KumarPosted Apr 19, 2017, 9:25 PM
Naveen KumarPosted Mar 21, 2017, 10:54 AM
GowthamPosted Mar 20, 2017, 5:20 AM
GowthamPosted Mar 20, 2017, 2:43 AM
Naveen KumarPosted Mar 19, 2017, 10:01 AM