You need to call the right field...
function findItems()
{
var soapEnv = "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'> <soap:Body>" +
"<GetListItems xmlns='http://schemas.microsoft.com/sharepoint/soap/'>" +
"<listName>listNameHere</listName>" +
"<query> <Query> <Where>" +
"<Eq> <FieldRef Name='Assignee'/> <Value Type='Text'>" + variableName+ "</Value> </Eq>" +
"</Where> </Query> </query>" +
"<viewFields> <ViewFields> <FieldRef Name='Title' /> </ViewFields> </viewFields>" +
"<rowLimit>99999</rowLimit>" +
"<queryOptions xmlns:SOAPSDK9='http://schemas.microsoft.com/sharepoint/soap/' > <QueryOptions/> </queryOptions>" +
"</GetListItems>" +
"</soap:Body> </soap:Envelope>";
$.ajax({
url: "/_vti_bin/lists.asmx",
type: "POST",
dataType: "xml",
data: soapEnv,
complete: ProcessListItems,
contentType: "text/xml; charset=\"utf-8\""
});
}
function ProcessListItems(xData, status) {
var createdBy;
$(xData.responseXML).find("z\\:row").each(function () {
createdBy= $(this).attr("ows_Author");
alert(createdBy);
});
}
The createdBy variable at the end, for example, will be the person who created the item. ows_Editor should be the last "Modified By" person
Author
. Also is there a way using any developer tools, to see what the datatype of this object is?