This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • 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