javascript - loadXML does not work in chrome -


this works in ie crashes chrome in last line

var ie = (window.activexobject) ? true : false;  var xmldoc = (ie) ? new activexobject("msxml2.domdocument") : new window.xmlhttprequest();   xmldoc.async = false; xmldoc.resolveexternals = false;  xmldoc.loadxml(xmlhttp.responsexml.text); 

how can solved?


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -