Was just trying a small script to load a file and while it works if I
run it locally on my own pc if I try and access it on a remote web
server it generates an error code 0: Access is denied in IE:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Begin
function whatFile() {
window.location = 'file:///' + document.form1. cmuds.value;
}
// End -->
</script>
</HEAD>
<BODY>
<form name=form1>
<input type=file name="cmuds">
<input type=button onClick="whatFi le()" value="Open File">
</form>
</BODY>
</HTML>
I am trying to load the same local (text) file in each case. Anyone
know what the problem is and whether I can get round it ?
Thanks
run it locally on my own pc if I try and access it on a remote web
server it generates an error code 0: Access is denied in IE:
<HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaS cript">
<!-- Begin
function whatFile() {
window.location = 'file:///' + document.form1. cmuds.value;
}
// End -->
</script>
</HEAD>
<BODY>
<form name=form1>
<input type=file name="cmuds">
<input type=button onClick="whatFi le()" value="Open File">
</form>
</BODY>
</HTML>
I am trying to load the same local (text) file in each case. Anyone
know what the problem is and whether I can get round it ?
Thanks
Comment