XMLHttpRequest not works in chrome ? why ?

Posted by Nandkishorre under JavaScript on 2/26/2015 | Points: 10 | Views : 4027 | Status : [Member] | Replies : 0
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');
xmlDoc = xmlhttp.responseXML;

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

Nanda Kishore.CH


(No response found.)

Login to post response