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

why it doesn't forward the action with link ?

 
Nakata kokuyo
Ranch Hand
Posts: 472
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi , i have a button and a link which call doForward() , but how come link will not work but button is working fine ?

doForward() :

where doCheckComplete() is validation for necessary fields not in blank,

button :


link :


when i click on button , it work !
when i click on link , it doesn't ! (even the doForward() is called and it display alert after the line submit())

besides, is it possible i can use image to fire doForward() ?
i have try below :


it actually call the form action rather than doForward()'s action

thank you for guidance
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
with the image you need to return false;

onclick="doForward();return false;"

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic