Shooters
06-28-2006, 07:58 AM
I wonder if anybody can help with this.
I want to create a dynamic link on a page which automatically vnc me into a client pc on our intranet. The computer name is stored in a database field.
If the pc I want to connect to was called PC01, for example, I could use the following code in my aspx page:
<SCRIPT Language="JScript">
function makelink() {
linkname="vncviewer.exe PC01";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(linkname);
}
<A href="#" onClick="makelink(); return false;">Run VNC</A>
</SCRIPT>
However, rather than hardcode PC01 in the script, I want to grab the relevent computer name from the database. The problem is that I can't seem to find a way to pass that variable to jscript.
Any ideas?
I want to create a dynamic link on a page which automatically vnc me into a client pc on our intranet. The computer name is stored in a database field.
If the pc I want to connect to was called PC01, for example, I could use the following code in my aspx page:
<SCRIPT Language="JScript">
function makelink() {
linkname="vncviewer.exe PC01";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(linkname);
}
<A href="#" onClick="makelink(); return false;">Run VNC</A>
</SCRIPT>
However, rather than hardcode PC01 in the script, I want to grab the relevent computer name from the database. The problem is that I can't seem to find a way to pass that variable to jscript.
Any ideas?