473,414 Members | 1,777 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,414 software developers and data experts.

Is there a way to enter text into an HTML Form edit field

Hello

I can run a command as below:

start www.iteloffice.com

this launches my web browser and opens up the url www.iteloffice.com

What I want to do is open a particular web page and then insert some text
into a field in an HTML form. Is there any way to do this.

Once I can do this from a command prompt, my program will do this using
Shellexecute. I want to extract some information from the user and then
insert the vlaues in a form on my web site. Anyone got any ideas on how to
do this?

Angus Comber
an***@NOSPAMiteloffice.com
Jul 23 '05 #1
6 5821


Angus Comber wrote:

I can run a command as below:

start www.iteloffice.com

this launches my web browser and opens up the url www.iteloffice.com

What I want to do is open a particular web page and then insert some text
into a field in an HTML form. Is there any way to do this.


If you are on Windows and talking about MS Internet Explorer then you
can use scripting (JScript, VBScript, if installed Python or Perl too)
to automate Internet Explorer like you can automate other Windows
applications like Word or Excel.
Newsgroups that deal with such stuff are wsh (Windows Script Host)
groups on the MS news server news.microsoft.com or JScript or VBScript
groups on that server.
Docs are here:
<http://msdn.microsoft.com/workshop/browser/webbrowser/reference/objects/internetexplorer.asp>

But of course if all you want to do is submit data to a URL then it
doesn't need a browser necessarily, most programming languages
(sometimes with the help of libraries) will allow you to send HTTP
requests and receive the response.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2
Basically I want a web page on my web site to open with a string of text
(taken from the program the user will be running) entered into a field on a
form on this web page.

One way I could do it is call a perl script and pass it the text as a
parameter. Then I can have a Perl script dynamically create the form for
me. I was wondering if there was an easier way.

Angus
"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41*********************@newsread2.arcor-online.net...


Angus Comber wrote:

I can run a command as below:

start www.iteloffice.com

this launches my web browser and opens up the url www.iteloffice.com

What I want to do is open a particular web page and then insert some text into a field in an HTML form. Is there any way to do this.
If you are on Windows and talking about MS Internet Explorer then you
can use scripting (JScript, VBScript, if installed Python or Perl too)
to automate Internet Explorer like you can automate other Windows
applications like Word or Excel.
Newsgroups that deal with such stuff are wsh (Windows Script Host)
groups on the MS news server news.microsoft.com or JScript or VBScript
groups on that server.
Docs are here:

<http://msdn.microsoft.com/workshop/b...ce/objects/int
ernetexplorer.asp>
But of course if all you want to do is submit data to a URL then it
doesn't need a browser necessarily, most programming languages
(sometimes with the help of libraries) will allow you to send HTTP
requests and receive the response.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #3


Angus Comber wrote:
"Martin Honnen" <ma*******@yahoo.de> wrote
If you are on Windows and talking about MS Internet Explorer then you
can use scripting (JScript, VBScript, if installed Python or Perl too)
to automate Internet Explorer like you can automate other Windows
applications like Word or Excel.
Newsgroups that deal with such stuff are wsh (Windows Script Host)
groups on the MS news server news.microsoft.com or JScript or VBScript
groups on that server.
Docs are here:

<http://msdn.microsoft.com/workshop/b...ce/objects/int
ernetexplorer.asp>

Basically I want a web page on my web site to open with a string of text
(taken from the program the user will be running) entered into a field on a form on this web page.


As said, MS Internet Explorer on Windows can be automated with script,
so you can use script to open an Internet Explorer instance, load a URL,
access the document and its content once it is loaded, manipulate the
content meaning for instance you can fill in data in some form controls,
submit the form if needed. See the hints given above in my earlier reply
to find details.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #4
I cannot assume my user has Internet Explorer. I need a very generic
solution.

Angus

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41*********************@newsread2.arcor-online.net...


Angus Comber wrote:
"Martin Honnen" <ma*******@yahoo.de> wrote
If you are on Windows and talking about MS Internet Explorer then you
can use scripting (JScript, VBScript, if installed Python or Perl too)
to automate Internet Explorer like you can automate other Windows
applications like Word or Excel.
Newsgroups that deal with such stuff are wsh (Windows Script Host)
groups on the MS news server news.microsoft.com or JScript or VBScript
groups on that server.
Docs are here:


<http://msdn.microsoft.com/workshop/b...ce/objects/int ernetexplorer.asp>

> Basically I want a web page on my web site to open with a string of text > (taken from the program the user will be running) entered into a

field on a
> form on this web page.
>


As said, MS Internet Explorer on Windows can be automated with script,
so you can use script to open an Internet Explorer instance, load a URL,
access the document and its content once it is loaded, manipulate the
content meaning for instance you can fill in data in some form controls,
submit the form if needed. See the hints given above in my earlier reply
to find details.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #5
Angus Comber wrote:

Please don't top post, it makes it very difficult to follow the tread.
I cannot assume my user has Internet Explorer. I need a very generic
solution.


From what I gather, the user will be running a piece of software. They will
then visit a webpage in their browser. This will be a process they do
manually, the software they are running won't trigger the opening of the
browser.

As far as I know, the only way to do this would be using an ActiveX control,
on a Windows system, running Internet Explorer, with low security settings.
Webpages are not typically allowed to communicate with processes on the
user's system, the security issues would be too severe.

On the other hand, if the program were laucnhing the users default browser,
it could url encode the data and append it as a query string. A server side
process on the website could then read that value and populate the value
attribute of the input element.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #6


Angus Comber wrote:
I cannot assume my user has Internet Explorer. I need a very generic
solution.


As for the original question and the topic of this group, in HTML you
would need
<input value="input string">
you somehow indicated you would know how to create that with Perl for
instance so go that way if it solves your problem.
As for entering data in a running browser instance from another program
I don't think that is a topic here.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ivanhoe | last post by:
All articles and tutorials I've seen on subject of forms say that if there's name and value for submit button(input tag with type="submit"), they'll get submitted along with the rest of the...
15
by: M Smith | last post by:
I have a form I want to submit to itself. I want to be able to type in a list of numbers and submit the form and have that list show up on the same form under the text box I typed them into and...
1
by: Veeresh | last post by:
When I enter some data in textbox1 and hit enter key resulting in calling the clicked event of Button1. What I am doing wrong here? -- Veeresh Here is my code. <%@ Page Language="vb"...
6
by: guoqi zheng | last post by:
In a regular html form, when user press "enter" key, the form will be submitted. However, in ASP.NET web form, a form will only be submitted (post back) when a special button is clicked. Many...
10
by: Perry van Kuppeveld | last post by:
Hi, I have a problem with formatting a table including text fields wich can contain up to 255 chars. I need a table with 3 columns: - First column 50 % over the with a rowspan of the total...
1
by: jhoff | last post by:
I'm trying to use javascript to execute code when the enter key is pressed in a text box. Basically, I'm doing this... <html> <body onload="load()" onunload="GUnload()"> <form name=zipform>...
3
by: Rupe | last post by:
Because this is a form with a single text field, I require submition when ENTER OR TAB is pressed in the text box). However since their is only one field I can't use tab. Nor for some reason can I...
12
by: Daniel Klein | last post by:
I'm pretty new at php and web stuff so please be gentle with me. I'm trying to get a form to submit when the user presses the Enter key. I do not want to use javascript. I've googled this to...
7
by: kirkgilbert | last post by:
I am trying to do an onchange event in a form using a text field. The form is tied to a record set that is part of a repeated region. One the first record when I edit the data it works perfectly. ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
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...

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.