Trav Johnston schrieb:
> Hi everyone,
>
> I am very new to jquery but I am loving it!
>
> Im having an issue returning and parsing XML ajax response.
>
> JS:
>
> $(document).ready(function() {
> $.ajax({ url: "test_xml.php", success: function(xml) {
> alert($("average", xml).text());
> } });
> });
>
> PHP:
>
> echo '<?xml version="1.0″ encoding="utf-8″ ?>
> <average>working!</average>';
>
> This crashes FF and IE. Can someone help me out?
>
> Cheers,
> Trav.
You must also set the correct mime type...!
header('Content-Type: application/xml');
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/