Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Call an external program?
- From: elmuchacho at gmail.com (Laurent Muchacho)
- Subject: [Javascript] Call an external program?
- Date: Fri Apr 28 04:57:03 2006
Hi Miles, I think you did get a pretty clear idea that the browser will try not to let you do something like this. However there is a kind of way around but it need to be agree by the user. When you click on a link that contain a file format not supported by the browser it will open a window that let you download the file onto your machine, if your machine does have a program associated with this extension he will then give you 2 choice in this box you will either be offer the possibility to download or to open it with an associated program. An examples can viewed on this page the link : KML Tutorial file<http://www.keyhole.com/kml/google_earth_tutorial_files.kml>in the first paragraph will open google earth if you have the software install on you machine. http://www.keyhole.com/kml/kml_tut.html Second example is a site used by a ""friend"" on the page below you have a list of check box associated with a bit torrent download when you check one this box and click download at the bottom of the page it will then offer you the possibility to open the file with a p2p client program installed on you machine if you have one http://tvunderground.org.ru/index.php?show=episodes&id=2 Open the second examples at your own risk and I will almost recommend that you don't do it with IE or disable Javascript. However the risk taken will be worth it because they are using javascript to launch the download once you click the download button and I think this is what you are looking for. Now if the program you want to open support a particular file extension you could use this trick to present the user with an easy way to access the program if it is install. I hope this help you in your development, happy programming Laurent On 4/27/06, Miles Thompson <miles@xxxxxxxxxxxxxxxxx> wrote: > > I've looked through my JS book, and Googled, but I cannot find anything > like PHP's exec() command in JavaScript. > > What I want to do is this: > > When the operator leaves the "pay_method" combo box, if it has > been > changed to either "VISA" or "M-C", trigger a call to a credit card > maintenance program (CC_app) that runs on the local desktop. This program > does NOT run in a browser. > > I sort of think it could be done with a Java applet, and the applet could > watch the combo box for the change and make the call, but I'm not sure. > Then we would end up downloading the applet on every page refresh. > > Opinions? Suggestions? > > What I am suggesting now is to keep the CC_app open and use an alert() to > remind the user who can then Alt+Tab to it. > > Tks in advance - Miles Thompson > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.1.385 / Virus Database: 268.5.0/325 - Release Date: 4/26/2006 > > > _______________________________________________ > Javascript mailing list > Javascript@xxxxxxxxxx > https://lists.LaTech.edu/mailman/listinfo/javascript > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.LaTech.edu/pipermail/javascript/attachments/20060428/981fd61b/attachment.html
- References:
- [Javascript] Call an external program?
- From: Miles Thompson
- [Javascript] Call an external program?
- Prev by Date: [Javascript] Call an external program?
- Next by Date: [Javascript] RegExp for parsing search strings
- Previous by thread: [Javascript] Call an external program?
- Next by thread: [Javascript] RegExp for parsing search strings
- Index(es):