This is probably related to the issue in this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/036d49aead899d68
You can use the text2xml function at the bottom of the thread provided by Diego A. I don't remember the issue specifically, but I think the issue seems to be that IE is not recognizing the XML via jQuery because it does not have a content-type "text/xml" (I believe that's what it's suppose to be) so the AJAX falling into the error callback. If possible, such as if you're generating the XML server-side dynamically, forcing the header content-type to text/xml for the response should probably solve your issue directly. On Apr 15, 1:39 am, Bjaergager <onepr...@gmail.com> wrote: > 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); > }