Maybe the problem is that i wrote path to my file incorrectly, i'm using Linux, do i have to write path in some different way?
<script type="text/javascript"> function func(){ var xmlFile = new XMLHttpRequest(); xmlFile.open("GET", "/home/kat/course/data.xml", false); xmlFile.send(); xmlDoc = xmlFile.responseXML; document.getElementById("result_field").value = xmlDoc; } </script>
No comments:
Post a Comment