Nanda Kishore

Nanda Kishore

  • NA
  • 65
  • 14.9k

XMLHttpRequest not works in chrome ? why ?

Feb 26 2015 9:08 AM
Hi Team,
 I want to read xml using  XMLHttpRequest. below code works fine firefox but not working in Chrome. 

         xmlhttp = new XMLHttpRequest();
                   xmlhttp.open(xmlpath, false);
                   xmlhttp.setRequestHeader('Content-Type', 'text/xml');
                   xmlhttp.send();
                   xmlDoc = xmlhttp.responseXML;

i don't know, what to do. if any one know about the share me the answer.


Regards
Nanda Kishore.CH

Answers (1)