[jQuery] $.ajax get xmldocument works in firefox but not in IE

[jQuery] $.ajax get xmldocument works in firefox but not in IE


I have a list of products that I wish to load through ajax. The event
triggers a function with an url to the xmldocument.
A working version of this is placed here:
http://www.myagent.dk/ajaxtest/a.html
The productlist loads fine in firefox, but not in IE. It seems to be the
.each that fails.
function getItems(mUrl){
$.ajax(
{
type: "get", url: mUrl, data: "category=x", dataType: "xml", success:
function(mXml)
{
var count = 0;
$("/products/product", mXml).each(function(){
        count +=1;
        var itemid = $(this).attr('itemid');
        var retailprice = $("retailprice", this).text();
        var itemname = $("itemname", this).text();
        drawItem(itemid, retailprice, itemname, count);
}
);
}
}
);
}
function drawItem(itemid, price, name, count)
{
var productDiv = ""
productDiv += "<div id='innerProd" + count + "' >";
productDiv += "<h3>" + name + "</h3>";
productDiv += "

" + price + "

";
productDiv += " /showimage/" </img>";
productDiv += "</div>";
$("div#id" + count).html(productDiv);
}
The xml structure looks like this:
<?xml version="1.0" encoding="utf-8"?>
<products>
    <product itemid="23011">
        <retailprice>139.0000</retailprice>
        <itemname>Thera-Band Exercise ABS-Ball 45cm yellow</itemname>
    </product>
    <product itemid="23021">
        <retailprice>159.0000</retailprice>
        <itemname>Thera-Band Exercise ABS-Ball 55 cm red</itemname>
    </product>
</products>
Does anyone have a clue why this i happening. I have looked throgh the
posted messages. Some points into the bug-list, but all bugs seems fixed.
--
View this message in context: http://www.nabble.com/%24.ajax-get-xmldocument-works-in-firefox-but-not-in-IE-tf3131695.html#a8677051
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/