Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html:form - how to define name attribute?

 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:form> requires attribute "action" to specify the url of the action.do to invoke.
I also noted that <html:form name="myForm"> is deprecated.
How do I render the following html for javascript use?
<form name="myForm" action="MyAction.do">
</form>
[ September 10, 2002: Message edited by: Chu Tan ]
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the onsubmit attribute of the form tag?
 
Justin Chu
Ranch Hand
Posts: 209
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to do this
function process(){
document.myForm.submit();
}
<form name="myForm">
<select onChange="javascript:process()" name="id">
<option value="1">John Doe</option>
</select>
</form>
[ September 11, 2002: Message edited by: Thomas Paul ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic