What I'm trying to achieve is to get all the values which contain "/photovit_action" and for each of those values to be used in an img tag to display the images using the link that was provided.
This is my XML: Pastebin link
and this is my JQuery:
$.ajax({
url: "http://test.be",
type: "POST",
dataType: "xml",
data: soapMessage3,
crossDomain: true,
contentType: "text/xml; charset=\"UTF-8\"",
processdata: false,
success: function (xml) {
$(xml).find('item').each(function () {
var url = $(this).find("value:contains('/photovit_action')").text();
alert(url);
$('#test').append('<img src="http://test.be/' + url + 'canvasH(180)W(186)">');
});
}
});
Any ideas on how to do this?
Thanks in advance.
$(xml).find('item:contains("/photovit_action")').each(function () { var url = $(this).text(); $('#test').append('<img src="http://test.be/' + url + 'canvasH(180)W(186)">'); });thumbstringpart of the url value in the xmlthumbstring