I am a little confusd on ActiveX usage
I have a Linux and a windows Server
The windows server does not support IIS
This following code is supposed to add a
desktop icon shortcut link to my site
CODE:
<html>
<head>
<title><title>
<script language="JavaScript">
function fnGo()
{
var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oShellLink = WshShell.CreateShortcut(strDesktop + "\\RJO Player.lnk");
oShellLink.TargetPath = "oShellLink.WindowStyle = 1;
oShellLink.IconLocation = " 0";
oShellLink.Hotkey = "";
oShellLink.Description = "Site Description";
oShellLink.WorkingDirectory = strDesktop;
oShellLink.Save();
}
</script>
</head>
<body bgcolor="#ffffff" text="#804040" link="#008080" vlink="#008080" alink="#008080">
<a href="#" onclick="fnGo();">add desktop icon</a>
</body>
</html>
END CODE
While it works great when I test locally... when I move it on to the sites it does nothing.
What is needed on the servers to make it functional
Thanks ahead of time to anyone
I have a Linux and a windows Server
The windows server does not support IIS
This following code is supposed to add a
desktop icon shortcut link to my site
CODE:
<html>
<head>
<title><title>
<script language="JavaScript">
function fnGo()
{
var WshShell = new ActiveXObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oShellLink = WshShell.CreateShortcut(strDesktop + "\\RJO Player.lnk");
oShellLink.TargetPath = "oShellLink.WindowStyle = 1;
oShellLink.IconLocation = " 0";
oShellLink.Hotkey = "";
oShellLink.Description = "Site Description";
oShellLink.WorkingDirectory = strDesktop;
oShellLink.Save();
}
</script>
</head>
<body bgcolor="#ffffff" text="#804040" link="#008080" vlink="#008080" alink="#008080">
<a href="#" onclick="fnGo();">add desktop icon</a>
</body>
</html>
END CODE
While it works great when I test locally... when I move it on to the sites it does nothing.
What is needed on the servers to make it functional
Thanks ahead of time to anyone