I don't believe you need to pass the form object to the submit function....just
document.orderRegularForm.submit();
Hope this helps,
Todd
>>> [EMAIL PROTECTED] 6/13/01 10:28 >>>
I'm trying to use javascript to submit a form. The javascrip function get
called, but the form is not submited (i.e. the ActionClass doesn't execute)
Here is my jsp.
.....
<script language="JavaScript">
function transmitMessage(msgAction) {
document.orderRegularForm.action = "/dgonline/workOrderSubmit.do";
document.orderRegularForm.submit(document.orderRegularForm);
}
.............
<html:form action="workOrderRegular">
<a href="#"><img src="images/submit.gif" onClick="transmitMessage('Submit
Order')"></a>
</htm:form>
===My config.xml file
<action path="/workOrderSubmit"
type="com.dgsystems.dgonline.struts.order.OrderRegularSubmitAction"
name="orderRegularForm">
</action>