XMLHttpRequest not works in chrome ? why ?

Posted by Nandkishorre under JavaScript on 2/26/2015 | Points: 10 | Views : 2912 | 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');
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




Responses

(No response found.)

Login to post response