Solved

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

Posted on 2012-03-16
2
155 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

697 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