HTML Code ClinicDo you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the HTML Code Clinic section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
I have a work that stopped because the client wants to run the windows application I've created before (still in VB6), from a web page in his Intranet. I don't work with web applications but I need to finished it. Any suggestions that can help me to start working on it?
Firstly you will have to make sure that the page is showing up in either the "Trusted Sites" zone or "Local Intranet".Then in the relevant zone you'll have to lower security settings on the client to allow "Initialize and Script ActiveX Controls not marked safe for scripting". Obviously you cannot do thius from within a web page.
The following code will then execute a command as if typed at the command line:
Code:
function runCommand(Command)
{
var oShell = new ActiveXObject("WScript.Shell");
oShell.Run(Command, 1, true);
}
This is IE only.
You can see more options for the shell.run method by looking at MSDN