I'm trying to develop fast, simple, html-based front ends
for some Windows application programs. My idea:
1. Use html forms to let users supply run parameters (title,
run options, etc.)
2. When the user presses a submit button:
a. The selected options for all the form fields are
written to an external file (e.g., c:\project\inpu t.txt)
b. The application program, say, prog.exe, is executed.
This program then reads the run parameters from the file
input.txt and proceeds.
Here are examples of the kinds of forms I might use:
<html>
<form>
Run title:
<input type="text" name="run_title ">
</form>
<form>
Method:
<select name="run_metho d">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</form>
</html>
Is it possible to do steps 2a and 2b above? If so, does it
require only html code, or do I need javascript or something
similar?
As is probably obvious, I'm just an application programmer,
and a newbie when it comes to html etc.
Thanks in advance!
--
John Uebersax 1 1894
JavaScript can't processl JavaScript form. What you would need to do is
use a server-side language like PHP or ASP to process the form and call
the exe.
john wrote:
I'm trying to develop fast, simple, html-based front ends
for some Windows application programs. My idea:
1. Use html forms to let users supply run parameters (title,
run options, etc.)
2. When the user presses a submit button:
a. The selected options for all the form fields are
written to an external file (e.g., c:\project\inpu t.txt)
b. The application program, say, prog.exe, is executed.
This program then reads the run parameters from the file
input.txt and proceeds.
Here are examples of the kinds of forms I might use:
<html>
<form>
Run title:
<input type="text" name="run_title ">
</form>
<form>
Method:
<select name="run_metho d">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
</form>
</html>
Is it possible to do steps 2a and 2b above? If so, does it
require only html code, or do I need javascript or something
similar?
As is probably obvious, I'm just an application programmer,
and a newbie when it comes to html etc.
Thanks in advance!
--
John Uebersax
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: haynesc |
last post by:
Hi,
I'm having a problem where when trying to open a file in write mode, I
get an IOError stating no such file or directory. I'm calling an
external program which takes an input file and produces an output file
repeatedly, simulating the input file separately for each replicate.
The error occurs when trying to open the input file to write out the
new data. The problem is difficult to reproduce since it only shows up
once every few...
|
by: Viviana Vc |
last post by:
How can I programatically do the equivalent of the following:
cacls "C:\Program Files\test" /T /G Everyone:f ?
Thanks,
Viv
|
by: jason |
last post by:
I have a function that <body onload=..> sets some form values. However
when i execute that functionf from external js file, i get erorrs and
it dont work.
The function sets the fields via
document.forname.fieldname.value = xx;
I would imagine document no longer applies since external js file. How
can i do this from an external js file.
|
by: Greg Fierro |
last post by:
I would appreciate any help from anyone with the following:
I have an external program (window32 based) that I am executing with the
VBA SHELL command. This program produces a text file which I have to
read after the external program finishes. I use the transfertext method
to read the file.
The problem is that the SHELL command executes external programs in an
asynch way. In other words, the VBA code will continue running and NOT...
|
by: Cédric Rossé |
last post by:
Hello,
I have a web application (asp.net, c#) and I'd like to execute an external
program (.exe or .cmd) in the server side (which runs the iis server) when
the client press a simple button on a web page.
I'm using impersonalisation and the class "Process", but I can't execute my
external program...
The process is created (I try to execute notepad.exe) and I can see it in
the windows task manager but then nothing appends and my...
| |
by: Peter Van Wilrijk |
last post by:
Hi,
In VB6 I have the following code ...
Dim frmLink As Form
Set frmLink = Forms.Add(stringformname)
frmLink.Show
'wait until all data has been loaded
Do Until frmLink.Loaded = 21
DoEvent
|
by: snicks |
last post by:
I'm trying to exec a program external to my ASP.NET app using the following
code. The external app is a VB.NET application.
Dim sPPTOut As String
sPPTOut = MDEPDirStr + sID + ".ppt"
Dim p As New System.Diagnostics.Process
'p.Start(MDEPDirStr & "macrun.exe", sPPTOut)
p.Start("C:\WINDOWS\SYSTEM32\CALC.EXE")
'p.Start("C:\WINDOWS\SYSTEM32\macrun.exe", sPPTOut)
|
by: Matthew Warren |
last post by:
I have the following piece of code, taken from a bigger module, that
even as I was writing I _knew_ there were better ways of doing it, using
a parser or somesuch at least, but learning how wasn't as fun as coding
it... And yes alarm bells went off when I found myself typing eval(),
and I'm sure this is an 'unusual' use of for: else: . And I know it's
not very robust. As an ex cuse/planation, this is what happens when you
get an idea in...
|
by: f rom |
last post by:
----- Forwarded Message ----
From: Josiah Carlson <jcarlson@uci.edu>
To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org
Sent: Monday, December 4, 2006 10:03:28 PM
Subject: Re: 1>make_buildinfo.obj : error LNK2019: unresolved external symbol __imp__RegQueryValueExA@24 referenced in function _make_buildinfo2
Ask on python-list@python.org .
- Josiah
|
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,...
|
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,...
| |
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
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...
| | |