Im not sure, but try this: $.get("ajax-test.xml",function(xml){ alert( $("title",xml).html() ); });
Untested, blah blah blah. On 12/19/06, insq <[EMAIL PROTECTED]> wrote:
Hello there, This may sound like a dumb question, but somehow I can't figure it out: Let's say we have a basic xml file and a simple piece of code: <?xml version="1.0"?> <foo> <title>This was loaded from an external XML file.</title> </foo> $.get("ajax-test.xml",function(xml){ alert( $("title",xml).text() ); }); This only works when put directly in $(document).ready(function() { }. I can't receive any response using events (click etc.) Firebug console notices a GET response as long as alert window (unfortunately empty) is visible. Thanks in advance. -- View this message in context: http://www.nabble.com/xml-response-with-%24.get%28%29-tf2848454.html#a7955113 Sent from the JQuery mailing list archive at Nabble.com. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
_______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/