469,646 Members | 1,417 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,646 developers. It's quick & easy.

access local file and display the content

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>

Oct 19 '06 #1
1 4062
VK

MD wrote:
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"
Would you prefer any web-page able to read/write your hard disk? In the
standard security environment you are not allowed to access local files.

Oct 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by TheCoder | last post: by
29 posts views Thread by Patrick | last post: by
12 posts views Thread by Ron Weldy | last post: by
8 posts views Thread by lightcap | last post: by
1 post views Thread by Duffman | last post: by
3 posts views Thread by =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.