[jQuery] jquery calls asp server page - works in in firefox 3 but not in IE 7

[jQuery] jquery calls asp server page - works in in firefox 3 but not in IE 7


Hi
Tried out a jquery code demo from http://www.xml.com/pub/a/2007/10/10/jquery-and-xml.html
which works fine in Firefox 3 but fails to work in IE 7. It dosn't
work in IE either directly calling a static xml file or by using an
asp server file to create the xml dynamically. Any ideas why it fails
in IE 7?
jquery snippet :
<script type="application/javascript">
$(function() {
$('#update-target a').click(function() {
$.ajax({
type: "GET",
url: "labels.xml", // or use labels.asp to create a
dynamic xml file
dataType: "xml",
success: function(xml) {
$(xml).find('label').each(function(){
var id_text = $(this).attr('id')
var name_text = $(this).find('name').text()
     var address_text = $(this).find('address').text()
$('<li></li>')
.html(name_text + ' (' + id_text + ')' +
' ' + address_text)
.appendTo('#update-target ol');
}); //close each(
}
}); //close $.ajax(
}); //close click(
}); //close $(
</script>
Full code here for labels.htm and labels.asp:
http://snippets.dzone.com/posts/show/5774
Cheers