grahamg
03-12-2003, 11:11 AM
This is the error message.
Forbidden
You don't have permission to access /java script:void(0) on this server.
--------------------------------------------------------------------------------
Apache/1.3.20 Server at localhost Port 80
This is the code that I'm trying to execute.
echo "<a onClick=\"exec('calc.exe'); return false;\" href=\"java script:void(0)\">Launch Calculator</a>";
I get the usual activex warnings, I click on 'yes/ok', but then a popup windows tells me that 'command execution of calc.exe dissallowed by user'.
Steps that I've already taken.
1) modify the registry to show 'my computer' as a zone in the internet options/security tab.
2) modified the following zones to have low security and enabled all scripting accesses that I could find. (internet/Local intranet/my computer)
I've tried this on several machines all running win2ksp3 ie6.0sp1. Some machines this code works, and on some it doesn't/produces the above error messages.
I'm pulling out the little amount of hair that I have left.
BTW, this happens if I use vbscript, javascript, or php's exec();, I just picked out my lastest example of code.
Any thoughts?
Forbidden
You don't have permission to access /java script:void(0) on this server.
--------------------------------------------------------------------------------
Apache/1.3.20 Server at localhost Port 80
This is the code that I'm trying to execute.
echo "<a onClick=\"exec('calc.exe'); return false;\" href=\"java script:void(0)\">Launch Calculator</a>";
I get the usual activex warnings, I click on 'yes/ok', but then a popup windows tells me that 'command execution of calc.exe dissallowed by user'.
Steps that I've already taken.
1) modify the registry to show 'my computer' as a zone in the internet options/security tab.
2) modified the following zones to have low security and enabled all scripting accesses that I could find. (internet/Local intranet/my computer)
I've tried this on several machines all running win2ksp3 ie6.0sp1. Some machines this code works, and on some it doesn't/produces the above error messages.
I'm pulling out the little amount of hair that I have left.
BTW, this happens if I use vbscript, javascript, or php's exec();, I just picked out my lastest example of code.
Any thoughts?