This will work in most situations but if you have the form in a div (layer)
then you will need to go to more trouble to get the form object for
Netscape.
----- Original Message -----
From: "Anubhav Jain" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 05, 2001 9:11 AM
Subject: Re: Invoke a submit post via JavaScript
> I hope this helps you !!!
> <script language = "javascript">
> function SubmitForm()
> {
> document.form1.submit();
> }
> </script>
> .....
> <form name = form1 method = "post" action = "aaa.jsp">
> ....
> <input type = submit onClick = SubmitForm();>
>
> Anubhav
>
> -----Original Message-----
> From: Schroder, Bart R [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 05, 2001 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: Invoke a submit post via JavaScript
>
>
> I'm passing form data to a pure Servlet that then passes the values to a
JSP
> via the RequestDispatcher object.
>
> Unfortunately, the form data values are sensitive in nature.
>
> So how do I encrypt those values (appended to the URL) or how can I invoke
a
> submit (method=post) via the JavaScript in the file containing the form?
>
> Thanks,
>
> Bart Schroder
>
>
___________________________________________________________________________
> 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
>
> _______________________________________________________
> DATA SECURITY - PLEASE READ
> This communication may contain information which is CATALOGA confidential
> and may also be privileged. It is for exclusive use of the intended
> recipient(s). If you are not the intended recipient(s) please note that
any
> form of distribution, copying or use of this communication or information
in
> it, is strictly prohibited and may be unlawful.
>
> If you have received this communication in error please forward it to
> [EMAIL PROTECTED], then delete the email and destroy any copies
of
> it.
>
> Thank you for your cooperation.
> _______________________________________________________
>
>
___________________________________________________________________________
> 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