I have written a Delphi single threaded, out-of-process (exe) automation server that I want to execute methods from a HTML page.
A. I have been able to launch the server with the following code:
[HTML]<OBJECT id=DisplaySrv type="application/x-oleobject" height=0 width=0
classid="clsid:55516EF3-C938-468B-A0AF-29717D15009F">
</OBJECT>[/HTML]
B. This is how I execute a method from a web page:
[HTML]<a HREF="javascript:DisplaySrv.DisplayDocuments(actio n, doclist, retvalue)">Launch Display Image</a>[/HTML]
C. I have place three text fields on the page. They are named: action, doclist and retvalue.
D. Questions:
1. How can I get the data input in the 3 html text boxes into the javascript variables so the data can be passed to the server without having to click the Submit button?
2. Once the method has been executed, it returns HRESULT indicating success or failure of the method call. How can I access that field so I can take appropriate action?
3. Is javascript the best tool to control an automation server? Should I be using JScript or VBA or something else instead?
Thanks much in advance!