hey folks,
check out www.craniumdesigns.com/new
please look at the code and tell me why the parsed xml is not being appended inside the web portfolio area. i am new to jquery and can't figure this out. thanks
Code JavaScript:jQuery(function( $ ){ //xml parsing for portfolio $.ajax({ type: "GET", url: "port_web.xml", dataType: "xml", success: function(xml) { var _name = ""; var _url = ""; var _image = ""; var _desc = ""; $("/portfolio/job", xml).each(function(){ _name = $("name", this).text(); _url = $("url", this).text(); _image = $("image", this).text(); _desc = $("desc", this).text(); $("#tabPortfolioWeb ul").append("Name: " + _name + "<br />Description: " + _desc); }); } }); });







Bookmarks