Hi,
I want to load client machine xml file into my html page using XMLHTTP.
If I open the my file by giving
D:\xmlhttpPRG\loadXML.html
then it loads the xml file. This works fine but if I open this file by giving URL ie.
http://127.0.0.1/xmlhttpPRG/loadXML.html
then its gives an error "Permission denied"
><script language="javascript">
var xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP");
xmlhttp.Open("GET", "file:///C:/sample.xml", false);
xmlhttp.Send();
alert(xmlhttp.responseText);
</script>
So, how can I load client machine xml file into my html page using URL.
If anybody knows the solution then pls send me the solution.
Thanks.