[jQuery] Re: Traversing XML via jQuery

2008-07-11 Thread Sam Sherlock
not tried this, I might have an obvious error, but this is what i would try var $suggest =$("#suggest"); var $testo = $("#testo"); // perform function on each isbn from xml source $("isbn", xml).each(function (i, n) { // append the text to the su

[jQuery] Re: traversing xml

2008-01-21 Thread Alexandre Plennevaux
thanks, the only difference i spot is that you call the function when the ajax loading is successful. but i need to call that function many time afterwards, and i was logging a message to the console when the loading is finished and it always occured before i was actually calling the function, ye

[jQuery] Re: traversing xml

2008-01-21 Thread chrismarx
this returned a myVal of 2007: $(document).ready(function(){ $.ajax({ type: "GET", url:"jquery_test.xml", //your xml data: "", dataType: "xml", success: function(data,textStatus) {