Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11508

IE8 Can't Parse Search.asmx results

$
0
0

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});
							});
.
.
.
.


Viewing all articles
Browse latest Browse all 11508

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>