Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 160
  • Last Modified:

Multiple Hyperlinks to launch client's local executable program with different parameters

We have multiple devices that we connect to with ultravnc.  I was hoping to create a sinmple html file with links that would laund ultravnc with the host ip of each.  But each hyper link is defualting to my last entry.  For example:


<a href="javascript:LaunchApp()">Inbound KIOSK 1</a>
<script>
function LaunchApp() {
 if (!document.all) {
  alert ("Available only with Internet Explorer.");
  return;
 }
 var ws = new ActiveXObject("WScript.Shell");
 ws.Exec("c:\\Program Files\\UltraVNC\\vncviewer.exe -connect 10.10.79.131");
}

</script>
</br>
<a href="javascript:LaunchApp()">Inbound KIOSK 2</a>
<script>
function LaunchApp() {
 if (!document.all) {
  alert ("Available only with Internet Explorer.");
  return;
 }
 var ws = new ActiveXObject("WScript.Shell");
 ws.Exec("C:\\Program Files\\UltraVNC\\vncviewer.exe -connect 10.10.79.132");
}
</script>
</br>

when I click on the Inbound Kiosk 1 link it launches ultravnc but tries connecting to 10.10.79.132.  is there anyway of correcting this.  I have a dozen Kiosk I need to make entries for.
0
aplcanada
Asked:
aplcanada
1 Solution
 
Dave BaldwinFixer of ProblemsCommented:
You have two functions with the same name.  Only one will be found.  Change the name of the second both in the function and in the link.  Maybe LaunchApp2() .
0
 
aplcanadaAuthor Commented:
Perfect, thanks for the help. Little bit of a delay in responding :)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now