Click here to Skip to main content
       

JavaScript

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionpassing argument from javascriptmemberdineshbabub1-Jun-12 0:55 
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) {
        //alert("First")
    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
AnswerRe: passing argument from javascriptmvpManfred R. Bihy1-Jun-12 3:11 
GeneralRe: passing argument from javascriptmemberdineshbabub3-Jun-12 18:13 
GeneralRe: passing argument from javascriptmemberdineshbabub3-Jun-12 21:06 
GeneralRe: passing argument from javascriptmvpManfred R. Bihy4-Jun-12 1:51 
GeneralRe: passing argument from javascriptmvpManfred R. Bihy3-Jun-12 21:43 
GeneralRe: passing argument from javascriptmemberdineshbabub3-Jun-12 22:14 
GeneralRe: passing argument from javascriptmvpManfred R. Bihy4-Jun-12 1:48 
GeneralRe: passing argument from javascriptmvpManfred R. Bihy4-Jun-12 2:02 
GeneralRe: passing argument from javascriptmemberdineshbabub4-Jun-12 16:08 
GeneralRe: passing argument from javascriptmvpManfred R. Bihy4-Jun-12 22:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130619.1 | Last Updated 19 Jun 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid