You may need to create two forms within the page, each with it's own set of input elements. This may not be the best solution but it has worked for me in the past when I have a limited number of inputs.

<form name="someform" method="post" action="$link.setAction("myclass").setPage("results.vm")">
<input type="hidden" name="eventSubmit_doAdd" value="1">
<input type="hidden" name="otherData" value="1">
<a href="javascript:doSubmit()">Add</a>
</form>


AND

<form name="someform" method="post" action="$link.setAction("myclass").setPage("results.vm")">
<input type="hidden" name="eventSubmit_doExpand" value="1">
<input type="hidden" name="otherData" value="1">
<a href="javascript:doSubmit()">Expand</a>
</form>


Good luck,

Steve Yokanovich


Luke Majewski wrote:


This works _almost_ :)

I like this suggestion it works very well, but now i have the problem that I
have two functions being called by two different links, so I have:

<input type="hidden" name="eventSubmit_doExpand" value="1">
<input type="hidden" name="eventSubmit_doAdd" value="1">

and now what happens is that depending on which link I hit, either the
Expand or the Add, the backend function called will always be the same.  So
in other words, if a vist my page, hit "add", it calls the add function in
my backend.  But then if I hit the "expand" link, it also calls the add
function in my backend.  Any suggestions as to how to, for lack of a better
word, "clear" the page so that this behavior is not observed?

thank you!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to