M
MD
Is it possible to load the local xml file and display in the div?
Currently i tried the following source when i put it to web
always gives me error saying "access is denied"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">
function LoadFiles(){
var getsrchResSize_url = document.getElementById('filename').value;
var dom = new ActiveXObject("Msxml2.DOMDocument");
dom.async = false;
dom.load( getsrchResSize_url );
alert( dom.xml );
}
</script>
<body>
<form id="files">
<input type=file id=filename >
<input type=button onClick="LoadFiles();">
</form>
</body>
</html>
Currently i tried the following source when i put it to web
always gives me error saying "access is denied"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<script language="JavaScript">
function LoadFiles(){
var getsrchResSize_url = document.getElementById('filename').value;
var dom = new ActiveXObject("Msxml2.DOMDocument");
dom.async = false;
dom.load( getsrchResSize_url );
alert( dom.xml );
}
</script>
<body>
<form id="files">
<input type=file id=filename >
<input type=button onClick="LoadFiles();">
</form>
</body>
</html>