You are completely right! This has cost me some hours... Thanks to bill ;-)
-----Original Message----- From: prototype-scriptaculous@googlegroups.com [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Lars Schwarz Sent: maandag 26 januari 2009 19:37 To: prototype-scriptaculous@googlegroups.com Subject: [Proto-Scripty] Re: Problems with XML in IE 7 sounds like an encoding problem ... for me IE often stops working if everyting is utf-8 and i also declare the reponse to be utf-8 encoded. if i remove the encoding on the response it works fine in IE, too On Mon, Jan 26, 2009 at 4:08 PM, Patrick <patr...@clickfactor.nl> wrote: > > I am loading some XML: > > new Ajax.Request(this.options.url, { > method: 'post', > parameters: '&r=hl&f=' + $F(this.textbox), > onSuccess:function(transport) > { > thisObject.data = transport.responseXML; > alert(thisObject.data.getElementsByTagName > ('Locations')[0].childNodes.length); > } > }); > > In Firefox I am getting a good result on the alert, in IE it returns > zero. > > When I am loading the responseText from transport into Xmldoc it > retruns a good result: > > // testing result for IE > xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); > xmlDoc.loadXML(transport.responseText); > > alert(xmlDoc.getElementsByTagName('Locations')[0].childNodes.length); > > > > Any suggestions? > > > > -- Lars Schwarz Heiligengeiststr. 26 26121 Oldenburg T 0441 36110338 M 0151 1727 8127 W www.bitrocker.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---