Solved

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

Posted on 2012-03-16
2
156 Views
Last Modified: 2014-04-30
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
Comment
Question by:aplcanada
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 37731684
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
 

Author Comment

by:aplcanada
ID: 40032874
Perfect, thanks for the help. Little bit of a delay in responding :)
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question