Jquery xml webservice parsing error



I am trying to display asmx webservice data to a div with jquery. I am unable to get it work and it gives a parse error with the below code. Here is my fiddle:


Webservice: http://ift.tt/1B54gkl



$.ajax({
type: "post",
url: "http://ift.tt/1sL3EM3",
contentType: "application/xml; charset=utf-8",
dataType: "xml",
data: "4",
success: function (xml) {
$(xml).find('StockQuotes').each(function () {
var title = $(this).find('Symbol').text();
var created = $(this).find('Date').text();

alert(title);
});
},
error: function (msg, m2, m3) {
alert(m2);
}
});

No comments:

Post a Comment