Due to having to use a big hammer on my code, I've run into a bit of a hiccup.
I have the following link on a page:
It works perfectly and how I want it to work.
The problem is I now have to add a second link to the same page that mimics the actions of the first link. There has to be a way to put the target (listed as UserMain.aspx in the form tag) in the a href tag instead so I can have one form tag to handle both links instead of two form tags. I'm very rusty on my Javascript and I'm not finding how to do this. Any hints?
I have the following link on a page:
Code:
<form method="post" action="/timesheet/UserMain.aspx" name="timesheet_form">
<input type="hidden" name="UserID" value="<%=Session("UserID")%>">
<a href="javascript:document.timesheet_form.submit();">Timesheet Application</a></form>
It works perfectly and how I want it to work.
The problem is I now have to add a second link to the same page that mimics the actions of the first link. There has to be a way to put the target (listed as UserMain.aspx in the form tag) in the a href tag instead so I can have one form tag to handle both links instead of two form tags. I'm very rusty on my Javascript and I'm not finding how to do this. Any hints?