|
How to call a program from javascript
My question concerns interfacing a web page to a stand alone program via javascript on a Windows client. The stand alone program would be an out-of-process server. It remains loaded until it is shut down. The server would be written in C++ or Delphi, etc., but is a stand alone .exe. There is no underlaying support software, such as .NET.
My questions are, can javascript:
1. Initially load the program the first time it is called?
2. Can javascript unload the program?
3. Can javascript pass a character string into the program. The character stringhas a method name and the data need to porcess the method. Perhaps javascript can make the method call to the program and pass required parameters for that method?
Examples of method calls (non-specific to any language or javascrpt):
1. DisplayImages(myProgram.exe,Img1,Img2,Img3). Where Img1, Img2, Img3 are variables that contains the name of the image file to be displayed by the program. DispalyImages is a method in myProgram.exe.
2. UpdateIndex(myProgram.exe, business_unit, voucher_number, invoice_date, invoice_no).
If someone could point me to a web resource on how to do this (if it can be done) would be most appreciated!
Thanks in advance,
Regards,
rcflyer2005
|