Hi

I am trying to get a .txt editor script I have found to work at my workplace, however we used mapped drives and the script uses ActiveX controllers. I did see a fix for this somwhere by setting some paths or somthing, But I cannot find it. Could anyone help me out with this please. The script I am using is added below.

Kirt

Code:
<html>

<head>

<script type="text/javascript">
  function ShowFile(sFilePath){
   var oFileSystem = new ActiveXObject("Scripting.FileSystemObject");
       frmEditHTML.tarHTMLText.value = oFileSystem.OpenTextFile(sFilePath.value).ReadAll();
  }

  function SaveAfterEditing(sFilePath){
   var oFileSystem = new ActiveXObject("Scripting.FileSystemObject");
   var oFile = oFileSystem.CreateTextFile(frmEditHTML.filPath.value,1);
       oFile.WriteLine(sFilePath.value);
       oFile.Close();
  }
</script>

</head>


<body>

<form name="frmEditHTML">

Select the HTML File you want to Edit
<input type=file name="filPath" onchange="ShowFile(this)">

<textarea name="tarHTMLText" cols=60 rows=20></textarea>

<input type="button" value="Save" name="cmdSave" onclick="SaveAfterEditing(this.form['tarHTMLText'])">

</form>

</body>

</html>