Hi,

There's a javascript equivalent to "user clicks the submit button", It's
document.<formName>.submit()

It will then submit your form according to the target, method and action given
in the <FORM> tag.
You may also overwrite these using:
document.<formName>.target = ..
document.<formName>.method = ...
document.<formName>.action = ...

You will have to use a different target each time or have a delay between your
servlet calls, if not I guess they won't be call all (it's like when you begin
to load a page and then change your mind and click on an other link, the first
call is cancelled).

Hope this helps

Isabelle




Stephane Cloutier <[EMAIL PROTECTED]> on 02/01/2000 02:14:52 PM

Please respond to "A mailing list for discussion about Sun Microsystem's Java
      Servlet API Technology." <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:    (bcc: Isabelle Bourret/Dallas/US/i2Tech)
Subject:  Re: Requests chaining...



>Yes, that's the whole point of POST: to send unlimited data to the server,
more
>data than a GET can submit in the URL.
>
>All the data is contained in a form in an HTML page. When the user causes the
>form to be submitted (usually by clicking a submit button in the form) all the
>parameters the were selected, typed, etc. are submitted by the browser to the
>server.

        I know that and that's my problem.  I would like the posting to be done
without any user interaction since with one action, I know all I need for
doing about 6 post requests.  It's a bit weird if you don't know the
background but it will be long to explain.  I would like to know if I can
post data without requiring user interaction.  By creating a form with an
automatic posting (just like if the submit button were pressed but without
user press) or by doing something else...  I've got the impression this
can't really be done...

>See http://developer.netscape.com/docs/manuals/htmlguid/index.htm for
>information about forms.

        Thansk for the link, nice but I didn't find the answer :-(

        Stephane

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to