Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Automation Server cant create object
Message
De
19/04/2002 15:25:24
 
 
À
11/04/2002 10:34:19
Information générale
Forum:
Internet
Catégorie:
Javascript
Divers
Thread ID:
00643742
Message ID:
00647035
Vues:
19
>I am trying to create a fileSystemObject in javascript I am running the following code.
>
><HTML><HEAD>
><input type="button" value="test" onclick="javscript:test()">
><SCRIPT LANGUAGE="JavaScript">
>function test()
>{
>  myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
>  file = myActiveXObject.GetFile("c:\\test.txt");
>  file.Delete();
>}
></SCRIPT>
></HEAD>
></HTML>
>
>but I am getting the following Error "Automation Server Cannot Create Object"
>The error is happening on this line:
> myActiveXObject = new ActiveXObject("Scripting.FileSystemObject");
>anyone has any ideas????
>thanks

Hi,
This happens because of the browser security settings, it doesn't allow access to local file system.
Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform