Solved

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

Posted on 2012-03-16
2
149 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
2 Comments
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
Comment Utility
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
Comment Utility
Perfect, thanks for the help. Little bit of a delay in responding :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now