...

View Full Version : Permission Denied: <a onClick=executeCommands()



rizzaur
10-21-2005, 08:43 PM
I have an html page with javascript code. The following code:

<a onClick=executeCommands(2,1,'A\\','R\\','AC001','.PIA',1)>
<img src=R:\TEST\SCRIPTS\main\compare.gif border=0 align=absmiddle></a><BR>

essentially creates a button that, when clicked, runs wincmp.exe (a file diff tool) and compares 2 files. for some reason these html files work fine on some XP\Win2k machines...others it dosent. i get a prompt that says, Permission Denied, Error. any ideas? thanks,

Rezaur

Lerura
10-21-2005, 09:02 PM
You can't run any program from within javascript or HTML itself

For that you need to include some server-side language (PHP ...?)

felgall
10-21-2005, 11:52 PM
The code will only work when all of the following conditions are met:

1. The browser is Internet Explorer
2. The files are in the appropriate locations on the computer.
3. Security on the computer is turned off to allow access to those files.

rizzaur
10-26-2005, 06:36 PM
You can't run any program from within javascript or HTML itself

For that you need to include some server-side language (PHP ...?)


lerura, thank you for your help. well i dont need the PHP or server side language, i finally got it to work, but i had to change the code a bit. i just made the button reference a *bat file that does what i need to do. still wish i knew what the problem was. thank you though!

rezaur

rizzaur
10-26-2005, 06:37 PM
The code will only work when all of the following conditions are met:

1. The browser is Internet Explorer
2. The files are in the appropriate locations on the computer.
3. Security on the computer is turned off to allow access to those files.


felgall, all those conditions were met. and this same code\pages work on other machines, just not on some. not sure what the problem was. had to change the code. thank you for your help anyway!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum