Yes, you use the onclick event for each button to send it to its own
javascript function, or a single function which reacts differently relative
to a parm passed

onclick="return F_Load_User_Data()"

in your called javascript function you can then do your processing or even
submit your form, or change the action of the submitted form, There really
is almost no limit to what you can do.



>From: Angela Chow <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
>     reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: jsp and javascript
>Date: Tue, 29 Aug 2000 14:36:41 -0700
>
>Hi,
>
>i have a form which have three buttons: delete item,
>more line items, and verify orders.  In this form, i
>have 5 rows which users can fill out 5 orders.  I have
>already did the validation on each field.  I am
>wondering if i can have javascript do certain
>validation based on the button the user clicks on.
>
>For example, if the user clicks on the verify order
>button, i want javascript to validate all the fields
>contain valid information; if the user clicks on the
>more item item button, i want javascript to valid that
>all the rows in the form are filled up.
>
>please help!
>
>Angela
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Mail - Free email you can access from anywhere!
>http://mail.yahoo.com/
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to