JavaScript
|
|
 |

|
Hi,
I wrote a script but I am not able to pass argument to the dialog box of my ssh-tectia.
<html>
<HEAD>
<TITLE>IPs</TITLE>
<link rel="stylesheet" href="style.css"/>
<script language="javascript">
<!--
var shell=new ActiveXObject("WScript.Shell");
function Execute(ipaddress,node) {
shell.Run("ssh-client-g3.exe /script /arg \" + ipaddress + \" /ARG \" + node + \" /ARG dinesh /ARG xxxxxx");
}
</script>
</HEAD>
<CENTER>
<FONT SIZE="+2">
IP's
</FONT>
</CENTER>
<BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#3a15ff" ALINK="#ff0000" VLINK="#ff282d">
<div id="wrapper">
<TABLE cellpadding="0" cellspacing="0" border="0" bgcolor="ffffcc" class="sortable" id="sorter">
<TR>
<TH><FONT FACE="Helvetica,Verdana,Arial">DEVICETYPE:</FONT></TH>
<TH><FONT FACE="Helvetica,Verdana,Arial">IPADDRESS:</FONT></TH>
</TR>
<TR>
<TD><FONT FACE="Helvetica,Verdana,Arial">4</FONT></TD>
<TD><FONT FACE="Helvetica,Verdana,Arial">
<a href="Javascript:void(0);"OnClick="Execute('100.101.20.204','dinesh1')">100.101.20.204</a></FONT></TD>
</TR>
<TR>
<TD><FONT FACE="Helvetica,Verdana,Arial">4</FONT></TD>
<TD><FONT FACE="Helvetica,Verdana,Arial">
<a href="Javascript:void(0);"OnClick="Execute('100.101.20.205','dinesh2')">100.101.20.205</a></FONT></TD>
</TR>
</TABLE>
</div>
</body>
</html>
I want some help on how to pass the arguments like ipaddress/hostname, username to the tectia dialog box and also the password is prompted only after getting the hostname and username
how to pass this?
Any ideas or suggestions please let me know.
Thanks
Dinesh
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin