[
https://issues.apache.org/jira/browse/OFBIZ-10482?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16551969#comment-16551969 ]
Deepak Dixit commented on OFBIZ-10482:
--------------------------------------
While working on it this found one more pattern that was unused
{code}
<input type="image" src="<@ofbizContentUrl>/images/spacer.gif</@ofbizContentUrl>" onclick="javascript:document.routeForm.submit();" />
{code}
We are adding an image and on click, on this, we are submitting the form,
We will remove this code as well.
> Use input type="submit" for form submission
> --------------------------------------------
>
> Key: OFBIZ-10482
> URL:
https://issues.apache.org/jira/browse/OFBIZ-10482> Project: OFBiz
> Issue Type: Improvement
> Reporter: Deepak Dixit
> Assignee: Deepak Dixit
> Priority: Major
>
> As per current implementation following pattern is used to submit a form
> {code}
> <a href="javascript:document.getElementById('<formId>').submit();" >.......</a>
> or
> <a href='javascript:document.<formName>.submit();>..........</a>
> {code}
> Instead, we can use input type="submit" if submit button is inside the form, at some places we need to still use javascript pattern to submit the form as we have a button outside the form
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)