I have a function that uses $.get to retrieve xml and in the callback function it will update a form. The function works fine in FF3 - but not in IE7, in IE7 I can see that the $.get DO request the xml with correct parameters - but the callback function never is called.
Here's my function - please help me get this right :-) function editPosting(val) { var f = new Array ("korseldato","fragtbrevdato","vognnr","chauffor","fragtbrevnr","postnr","vaegt","bemaerkninger"); var c = new Array ("indbaering","ventetid","tidslevering","genkorsel","lufthavnsgebyr","forgaevesafh","udenkvittering","forgaeves","toldoplag"); $.get("ajax/ajax.php", { action: "getfragtbrev", id: val, rnd:Math.random } ,function(xml){ setDivVal("#fbid", $("id",xml).text() ); for(i=0;i<f.length;i++) { setDivVal( "#"+f[i], $(f[i],xml).text() ); } for(i=0;i<c.length;i++) { if( $(c[i],xml).text() == '1') { $("#"+c[i]).attr('checked', true); } else { $("#"+c[i]).attr('checked', false); } } }); } function setDivVal(div,val) { $(div).val(val); }