@scaiferw
The code - shown below - works in IE, but not in chrome or firefox. Can anyone suggest how I can make this work in Chrome (Firefox would be nice too, but Chrome is more important.)
Can you post your code regarding with runApp() function.
LastMitch
Industrious Poster
4,155 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45
I can't get any of the commented runapp() or alert() lines to run, though I know the function is firing because the uncommented alert("hello"); line works whenever I click on the spanned text
Instead of click()
$(".tsconnect").click(function ()
Try using on() function:
$(document).ready(function() {
$("tsconnect").on("click",function(){
alert("hello");
runApp($(this).data("device_ip"));
alert($(this).data("device_ip"));
runApp("ping -t 127.0.0.1");
runApp("mstsc /v 10.1.2.3"); return false;
runApp("c:\temp\temp.cmd"); return false;
});
});
I'm not sure it's gonna work because this doesn't look right inside of runApp() & alert():
$(this).data("device_ip")
ping -t 127.0.0.1
mstsc /v 10.1.2.3
c:\temp\temp.cmd
Try to put 3 alerts and see how it goes. Put like one word in each alert.
If all 3 alerts appear then there's something wrong with
$(this).data("device_ip")
ping -t 127.0.0.1
mstsc /v 10.1.2.3
c:\temp\temp.cmd
So there's nothing wrong with the function runApp() & alert()
You need to find another way to make it readable so that runApp() & alert() function can read it and work.
LastMitch
Industrious Poster
4,155 posts since Mar 2012
Reputation Points: 132
Solved Threads: 334
Skill Endorsements: 45