473,657 Members | 2,585 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Pass Data to Automation Server

ravioliman
6 New Member
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="applicati on/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="javascrip t:DisplaySrv.Di splayDocuments( action, doclist, retvalue)">Laun ch 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 1506
acoder
16,027 Recognized Expert Moderator MVP
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.getEle mentById(textbo xid).
Jul 14 '07 #2
ravioliman
6 New Member
Welcome to TSDN!

Show the HTML for the text boxes. If you give them ids, you can access them using document.getEle mentById(textbo xid).
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
6374
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 connecting to a server in between data inputs, which ends up taking a lot of time per entry (about 10 minutes per complete entry). On average, there are 50 - 100 entries to be made (10 min * 50 entries = one hell of a boring day.) The data that is...
4
2488
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 "Microsoft does not currently recommend, and does not support, Automation of Microsoft Office applications from any unattended, non-interactive client application or component (including ASP, DCOM, and NT Services), because Office may exhibit unstable...
12
5516
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 and office XP components installed. ie I have word/access/excel 2k/xp/2003 installed. I tried to do a usual access 2k to word 2k automation yet I get the error "Automation Error" "ClassFactory cannot supply requested class" when on late binding try...
1
2491
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 is no problem. However, this Access app is using Pass Through Queries to SQL for these reports. I know that we can hard code a connection string for these pass through queries to get at this data but I am needing this connection string to be...
9
3304
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 >people moving from power user to developer, but now I suggest you browse >it, >too. It strongly emphasizes ADO, which knowledgeable Microsoft insiders no >longer recommend, and the Access ADP client to SQL Server. He writes well, >and is a good...
3
3180
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 wrapping a COM object because I am having issues with the types that C# does not seem to understand. I need to be able to use a method from the VB 6.0 dll which will query a proprietary data structure. I then need to return this and iterate...
5
2937
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
2712
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? Thanks in advance. David
2
1689
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 that I need to find the calls in the User32 dll to focus on windows outside the Access
0
8310
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8827
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8503
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4315
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2731
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1957
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1620
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.