Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Submit button

 
Smitha Prasad
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created a JSP with an update button. in the form i have specified the action as onSubmit call a specific function. But it is not executing this. what could be the problem? help!
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the JSP forum.
 
L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
whats your FORM tag. Can you give what you have used.
action = "javascript:myfunction()" and
<script language="javascript">
function myFunction() {....
}
</script>
Should work fine.
Cheers.
 
vishal avad
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Smitha
Be sure that update button u r using shouldn't be a of input type="Submit". If it is change it to button also change the name of button other than submit b sure about the code on onclick
HIH
Regards
Vishal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic