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

automatically submitting a page

I suspect this has been asked before, and I know that it technically is
off-topic, as it would probably take client-side code to accomplish. But I'd
like to ask it here anyway. I'd like to add that I did a search of this
forum and other sites. I did come up with
http://www.aspfaq.com/show.asp?id=2281, but that doesn't quite do it for me.

I have a project to .... ( in the background), navigate to a web page,
pre-fill some xml text into a html text box, and push the submit button.

I have reached a dead end on component invoke's - MICRSOSOFT HTML OBJECT
LIBRARY.

I am able to get the document.

I am able to get element by collection

I am able to set the value in the text area.

I simply don't know how to process (push the button). below is the

html source. I've tried " form element" "input element". I get various
errors. I heard Argo has customers that have done this basic html handling.
Can someone give me some advice. On how this could work.

<FORM ACTION="some.dll" METHOD="POST" NAME="InfoFrmGet" TARGET="Response">

<PRE>

<TEXTAREA ROWS=15 COLS=80 NAME="HFPTREQUEST" ></TEXTAREA>

<INPUT TYPE="submit" VALUE="Submit Values"> <INPUT TYPE="reset"

VALUE="Reset " >

</PRE>

</FORM>


Jul 19 '05 #1
8 1612
middletree wrote:
I suspect this has been asked before, and I know that it technically
is off-topic, as it would probably take client-side code to
accomplish. But I'd like to ask it here anyway.


Why?

There are newsgroups set up to handle this type of question? If you were a
newcomer I would answer it here anyways, but since you have been posting
here long enough to know better, I'm going suggest posting to a relevant
newsgroup. One of the .scripting neswgroups, or any newsgroup with "dhtml"
in its name will be happy to handle this question (I know, because I
frequent those groups myself).

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 19 '05 #2
Mainly because I see it as somewhat related to ASP(in a roundabout way), and
because most of the DHTML groups that I have been to seem to be slow in
answering and I was holping for a quick answer to this one.
"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
middletree wrote:
I suspect this has been asked before, and I know that it technically
is off-topic, as it would probably take client-side code to
accomplish. But I'd like to ask it here anyway.


Why?

There are newsgroups set up to handle this type of question? If you were a
newcomer I would answer it here anyways, but since you have been posting
here long enough to know better, I'm going suggest posting to a relevant
newsgroup. One of the .scripting neswgroups, or any newsgroup with "dhtml"
in its name will be happy to handle this question (I know, because I
frequent those groups myself).

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #3
On Thu, 9 Sep 2004 21:45:11 -0500, "middletree"
<mi********@HTOmail.com> wrote:
Mainly because I see it as somewhat related to ASP(in a roundabout way), and
because most of the DHTML groups that I have been to seem to be slow in
answering and I was holping for a quick answer to this one.

You could try the

comp.lang.javascript

group, there always helpful to me when I ask there. as this problem
being related to ASP - that is so far from the truth. ASP is
serverside, your problem is clientside.

quick tip: look up the ".submit()" method.

HTH

Al.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
middletree wrote:
> I suspect this has been asked before, and I know that it technically
> is off-topic, as it would probably take client-side code to
> accomplish. But I'd like to ask it here anyway.


Why?

There are newsgroups set up to handle this type of question? If you were a
newcomer I would answer it here anyways, but since you have been posting
here long enough to know better, I'm going suggest posting to a relevant
newsgroup. One of the .scripting neswgroups, or any newsgroup with "dhtml"
in its name will be happy to handle this question (I know, because I
frequent those groups myself).

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"


Jul 19 '05 #4
At my job, I don't have access to Usenet. I can get to specific groups which
reside on servers such as Microsoft, Macromedia, and GRC, but not a group
like comp.lang.javascript. So to go there, I'd have to wait until I got
home. That's why I didn't go there.

I do understand the difference between client-side and server-side. I felt
that this was a question that someone here could answer. I only do this type
of thing very rarely, and each time I do, I get heat for it. I think I'll
stop here before I say something I'll regret.
"Harag" <ha**********************@softhome.net> wrote in message
news:8f********************************@4ax.com...
On Thu, 9 Sep 2004 21:45:11 -0500, "middletree"
<mi********@HTOmail.com> wrote:
Mainly because I see it as somewhat related to ASP(in a roundabout way), andbecause most of the DHTML groups that I have been to seem to be slow in
answering and I was holping for a quick answer to this one.


You could try the

comp.lang.javascript

group, there always helpful to me when I ask there. as this problem
being related to ASP - that is so far from the truth. ASP is
serverside, your problem is clientside.

quick tip: look up the ".submit()" method.

HTH

Al.

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcom> wrote in message
news:uz**************@TK2MSFTNGP11.phx.gbl...
middletree wrote:
> I suspect this has been asked before, and I know that it technically
> is off-topic, as it would probably take client-side code to
> accomplish. But I'd like to ask it here anyway.

Why?

There are newsgroups set up to handle this type of question? If you were a newcomer I would answer it here anyways, but since you have been posting here long enough to know better, I'm going suggest posting to a relevant newsgroup. One of the .scripting neswgroups, or any newsgroup with "dhtml" in its name will be happy to handle this question (I know, because I
frequent those groups myself).

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"

Jul 19 '05 #5
"middletree" <mi********@htomail.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
At my job, I don't have access to Usenet. I can get to specific groups which reside on servers such as Microsoft, Macromedia, and GRC, but not a group
like comp.lang.javascript. So to go there, I'd have to wait until I got
home. That's why I didn't go there.

I do understand the difference between client-side and server-side. I felt
that this was a question that someone here could answer. I only do this type of thing very rarely, and each time I do, I get heat for it. I think I'll
stop here before I say something I'll regret.


Here are some options:

1. You could post to microsoft.public.scripting.jscript. While JScript
somewhat IE-centric, it still represents a subset/superset of EMCA
JavaScript and the newsgroup is fairly active.
2. Post to comp.lang.javascript from a web based system like Google Groups
3. If this is a background process, perhaps you should discard a browser
based solution in favor of a pure scripting solution. Here's an article that
includes an example of using the MSXML2.ServerXMLHTTP interface to post data
to a remote web page:

http://aspfaq.com/show.asp?id=2173

Once you ASP page is working, you could move the code into a script file and
schedule it to run periodically. Here's a related article:

http://aspfaq.com/show.asp?id=2143

I can understand your frustration, but it really is a disservice to everyone
when off-topic questions are posted. You are less likely to get a
meaningful/useful response, the person responding is occupied redirecting
you to a more appropriate forum for your question and others who have posted
on-topic questions are left waiting.


Jul 19 '05 #6
Oh come on! The number of posts about where to post far exceed the one
that it would take to answer the question. I'm not certain if this will
answer the question or not (IF IT DOESN'T PLEASE SEE ONE OF THE
BEFOREMENTIONED SCRIPTING FORUMS), however client-side you'd use within
a function.

document.[FORM NAME].submit();

David H

Chris Hohmann wrote:
"middletree" <mi********@htomail.com> wrote in message
news:e8**************@TK2MSFTNGP12.phx.gbl...
At my job, I don't have access to Usenet. I can get to specific groups


which
reside on servers such as Microsoft, Macromedia, and GRC, but not a group
like comp.lang.javascript. So to go there, I'd have to wait until I got
home. That's why I didn't go there.

I do understand the difference between client-side and server-side. I felt
that this was a question that someone here could answer. I only do this


type
of thing very rarely, and each time I do, I get heat for it. I think I'll
stop here before I say something I'll regret.

Here are some options:

1. You could post to microsoft.public.scripting.jscript. While JScript
somewhat IE-centric, it still represents a subset/superset of EMCA
JavaScript and the newsgroup is fairly active.
2. Post to comp.lang.javascript from a web based system like Google Groups
3. If this is a background process, perhaps you should discard a browser
based solution in favor of a pure scripting solution. Here's an article that
includes an example of using the MSXML2.ServerXMLHTTP interface to post data
to a remote web page:

http://aspfaq.com/show.asp?id=2173

Once you ASP page is working, you could move the code into a script file and
schedule it to run periodically. Here's a related article:

http://aspfaq.com/show.asp?id=2143

I can understand your frustration, but it really is a disservice to everyone
when off-topic questions are posted. You are less likely to get a
meaningful/useful response, the person responding is occupied redirecting
you to a more appropriate forum for your question and others who have posted
on-topic questions are left waiting.

Jul 19 '05 #7
On Sun, 12 Sep 2004 22:15:53 -0400, "David C. Holley"
<Da**********@netscape.net> wrote:
Oh come on! The number of posts about where to post far exceed the one
that it would take to answer the question. I'm not certain if this will
answer the question or not (IF IT DOESN'T PLEASE SEE ONE OF THE
BEFOREMENTIONED SCRIPTING FORUMS), however client-side you'd use within
a function.

document.[FORM NAME].submit();


document.forms["FORMNAME"].submit();

and I did give the OP an idea on what to look up
quick tip: look up the ".submit()" method.

Al
Jul 19 '05 #8
"David C. Holley" <Da**********@netscape.net> wrote in message
news:eE**************@TK2MSFTNGP14.phx.gbl...
Oh come on! The number of posts about where to post far exceed the one
that it would take to answer the question. I'm not certain if this will
answer the question or not (IF IT DOESN'T PLEASE SEE ONE OF THE
BEFOREMENTIONED SCRIPTING FORUMS), however client-side you'd use within
a function.

document.[FORM NAME].submit();


My thinking is that redirecting the poster to a more appropriate forum is
hopefully a one time affair that provides a better resource for future
client-side inquiries. Conversely, making an exception "just this once" only
reinforces the notion that this newsgroup is an appropriate forum for
client-side questions. You will note that in addition to pointing the poster
to a client-side newsgroup accessible from his work environment, I also
suggested a server-side solution. Finally, I empathize with the posters
frustration. We've all been in this situation at one time or another. Using
the most tactful language at my disposal, I simply tried to explain why
off-topic posting is a losing proposition for all involved. As you seem
willing to be the standard bearer for client-side questions in this
newsgroup, I will leave you to it and wish you Godspeed.
Jul 19 '05 #9

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

Similar topics

4
by: Mats | last post by:
Hi Maybee a little bit of topic, but is it possible to stay on the submitting page once you've clicked submit. This is to get processing done on page B when you submit on page A, and the page...
1
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your...
2
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of...
5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
0
by: Mike Kingscott | last post by:
Totally hacked off here. I've written a user control that contains a text box, a required field validator and a button (these being the cornerstone of a search facility), all as ASP.Net server...
2
by: Syam | last post by:
Hello everyone, I am just barely two months old into learning asp.net and vb.net. Currently I am working on a project to store customer database. I have a question about creating a preview page:...
1
by: Hello | last post by:
Scenario: A page creates a pop up and that pop up submits a form. Is there a way to detect whether the submitting was successful or not, so true/false could be passed to the parent window?
1
by: SachinBhargava | last post by:
Hi, I am faceing the problem while submitting the same page in ASP. When i am submitting the page, I am showing the java script alert message before closing the pop up window. My problem is, when...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.