473,406 Members | 2,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Pass Data to Automation Server

ravioliman
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!
Jul 13 '07 #1
2 1489
acoder
16,027 Expert Mod 8TB
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?
Welcome to TSDN!

Show the HTML for the text boxes. If you give them ids, you can access them using document.getElementById(textboxid).
Jul 14 '07 #2
Welcome to TSDN!

Show the HTML for the text boxes. If you give them ids, you can access them using document.getElementById(textboxid).
Figrued out that I have to add .value to getElementById to get the actual value!
Jul 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: | last post by:
Hi, I am an intermediate computer science student and I am in need of a "macro type" tool/language that will let me automate a data entry process. The data entry is rather simple but requires...
4
by: jabailo | last post by:
I came across this article while researching a VB6 430 error: INFO: Considerations for Server-Side Automation of Office http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757 ...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
1
by: timandsuzi36 | last post by:
Here's the issue. Appreciate any help any Access gurus can offer. I have a .NET WinForms application that needs to launch a Access DB application used for generating Access Reports. That part...
9
by: Tony Lee | last post by:
Some time a ago, on this newsgroup the following comments were made in recommending good references for Access (2003) >I used to recommend Dr. Rick Dobson's, "Programming Access <version>" for...
3
by: Andrew Mueller | last post by:
Hello, I tried this question prior and got no response, so thought I would try to explain differently.. I am not sure which type of object to pass between a VB 6.0 ActiveX dll and C#. I am...
5
by: equip200 | last post by:
i would like some assistance on how to pass data or string from one vb program to another c# program. can this be done with vbscript code to send data to the c# program? Thanks
5
by: apm | last post by:
Any and all: Is there an efficient way to pass a large array from .NET to COM? Can references (or pointer) be passed from COM to NET and NET to COM without the object it refers to being copied?...
2
by: christianlott1 | last post by:
Question I'd like to know specifically how to select another window outside of Access (a web page) and paste cells from my database. I've used a macro program to do this before. I've read...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.