Hello,
I'm using the search.asmx service in 2010 to pull back people. The query itself is fine, but when I go to parse the data in IE8 I get an error "object doesn't support this property or method".
Firefox it works fine, any alternatives ? I've also tried $.parseXML and it doesn't throw any errors, but the data doesn't parse.
It appears to break on the 2nd line (var x = ...) Any thoughts?
$(xData.responseText).find("QueryResult").each(function () { var x = $("<xml>" + $(this).text() + "</xml>"); var title = ''; var acctName = ''; x.find("Document").each(function () { $(this).find("Property").each(function() { if ($("Name", $(this)).text() == "Title") { title = $("Value", $(this)).text(); } if ($("Name", $(this)).text() == "AccountName") { acctName = $("Value", $(this)).text(); } }); r.push({ label: title, value: acctName}); }); . . . .