So, first:

html = '<img src="' + ($(this).find("xmlvar").text()) + '">' + 
($(this).find("titletext").text()) + '\n\n';

Create a variable with the code needed.

$("div").append($(html));

Then dump it to the div.

Order and logic you need to figure out, but thats an example of how to dump a 
xml returned result into a file.

--- On Wed, 5/20/09, alex <boba...@googlemail.com> wrote:

From: alex <boba...@googlemail.com>
Subject: [jQuery] jQuery & XML
To: "jQuery (English)" <jquery-en@googlegroups.com>
Date: Wednesday, May 20, 2009, 11:51 AM


I have this XML file, and I've gotten a few values from it, but I need
one more, a create a variable from it, and insert that in to an img
tag.

XML : http://itiz.in/idvt
JS : http://itiz.in/318m

So as is clear, getting the track name etc. is fine, but I want the
medium sized album art to be inserted in to an img tag (<img
src="medium_sized_image_url" alt="">). I've tried searching but can't
find anything, I'm doubly interested because I wouldn't mind using the
URL that's in there as well.



      

Reply via email to