mdcoll
10-16-2003, 08:36 AM
This is a JSP and JavaScript question. We are developing a JSP page using JavaScript to submit the form. We are currently using the JavaScript submit() function to get data from the code i.e. if a user select category "Dell", the submit() function will automatically get the subcategory i.e. "Desktop Computers".
The problem occurs when we put an action in the form section i.e. <form name="page2.jsp"> because we are using a submit function on each field, it is automatically going to the "page2.jsp" page.
How can we use the submit() function for the field(s) and also use the action parameter without going straight to the "page2.jsp" page? We would like for the form to go to the "page2.jsp" page after using the submit() functions for the field.
Sorry for the long message. I hope you understand what I am saying.
The problem occurs when we put an action in the form section i.e. <form name="page2.jsp"> because we are using a submit function on each field, it is automatically going to the "page2.jsp" page.
How can we use the submit() function for the field(s) and also use the action parameter without going straight to the "page2.jsp" page? We would like for the form to go to the "page2.jsp" page after using the submit() functions for the field.
Sorry for the long message. I hope you understand what I am saying.