• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

s:url and javascript onclick submit

 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one form and two actions. The main action is to log a user into the web site which all works fine. The second action needs to be triggered in the page to retrieve a lost password and should be kicked off by a link. My idea is to use something like
document.forms[0].action = 'LostPassword';document.forms[0].submit();
in the s:url to change the form action but everything I have tried results in a null.

from the properties file:


The form which works fine:


Now the peice of code outside of the form that creates a link. onclick I want it to reset the action & submit the form to a different action. How can I get javascript and an onclick event in the href?


Thanks,
Earl
 
E Robb
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DOH! I figured it out

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic