Cross Browser Problem?
Cross Browser Problem?
Hi All,
I'm new to jQuery and using jQuery 1.2.6 right now. I have problem in
AJAX parsing XML which has different behavior in IE7 and Firefox.
I have 1 html which contain jQuery script and 1 php which is
generating XML, they are located in http://www.komputasiawan.com/jquery/index.html
and http://www.komputasiawan.com/jquery/generatexml.php.
The generatexml.php will output a standard xml result :
-------
<?xml version="1.0" encoding="UTF-8" ?>
<message>
<author>Feris</author>
<text>Adios...</text>
</message>
------
and my jQuery part in index.html
------
<script type="text/JavaScript">
$(document).ready(function(){
$("#generate").click(function(){
$.post("generatexml.php",{dummy: 'a' }, function(pesanxml) {
theauthor = $("text",pesanxml).text();
$("#quote p").text(theauthor);
//$("#quote p").html(pesanxml);
});
});
});
</script>
------
In the code, I parse my xml and get "text" part. If I open the html
file and click on "generate" button to trigger the AJAX action, I've
got a correct result parsing in Firefox but not in IE7.
What am I doing wrong here ?$
Thanks,
Feris