471,873 Members | 1,825 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,873 software developers and data experts.

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 4114
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 YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.