[jQuery] Error when parsing AJAX-XML Document
hi,
just started usind JQuery.
I'm loading a xml-document which has:
<documentroot>
<artikel>...htmlcode...</artikel>
<artikel>...htmlcode...</artikel>
</documentroot>
and im going through this with
function draw(xml)
{
$("artikel",xml).each(function(i)
{
$("div.myparent").append(this.text);
}
);
}
all HTML Code should be appended to the parent-Node. Because of further development i'm doing this with each.
the function which has this code is called from two different places, the function itself is in an external .js-File.
for example:
<script type="text/javascript">
$(document).ready(function(){
$.get("ajaxinterface.php5",function(xml){draw(xml)})
});
</script>
now, i get the Error a[i] has no Properties in Line 355 (uncompressed version)
the XML File sended by the ajax-interface is correct, i checked that.
hope you can help, thanks
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/