Hot answers tagged spservices
xData represents the returned data, it could be replaced with foo or blah or whatever you'd like. Status represents the status of operation, off hand I don't remember if it is the status code (like 200) or status text (like success). I rarely use status and rely on the xdata returned in doing logic checking.
You can always scrape it from the DOM if you need to. The exact code will depend on what version of SharePoint you are running. Open your favorite browser's developer tools, and search the DOM for your name. In this example, I'm using an Office 365 site: In this case my name is in a div with the ID of SuiteNavUserName, so the code would be... ...
Only top voted, non community-wiki answers of a minimum length are eligible