Thank you for all your replies, they are very helpful. I had seen the
action-event how to and had read about the action.eventsubmit.needsvalue
property but it had not made sense until last night. A fundamental
understanding of how action events and parameters are passed from form to
backend was achieved last night, which makes this much easier. As you say,
there is no difference between addQeueryData, addPathInfo, etc, since they
create the same signature and that is what the backend looks for (btw, I got
the addQueryData stuff from archived turbine list responses, I think this is
the first time that the action event thread has been this thoroughly and
correctly responded to). Thank you all for your responses, they were very
helpful!
cheers,
Luke Majewski
----- Original Message -----
From: "Henning P. Schmiedehausen" <[EMAIL PROTECTED]>
Newsgroups: hometree.jakarta.turbine.users
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 21, 2003 3:45 AM
Subject: Re: AW: $link.setAction
> "Luke Majewski" <[EMAIL PROTECTED]> writes:
>
> >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?
>
> Read the docs. ;-)
>
> make this value="0" , use javascript to change the value of the event
> that you want to submit to "1" in your javascript submit function and
> add
>
> action.eventsubmit.needsvalue = true
>
> to your TR.props (this is documented in the action-event howto. Right
> at the bottom of the page. ;-) )
>
> However, you're better off with the DOM solution I've posted a few
> seconds ago. No need to drag lots of hidden fields around.
>
> Regards
> Henning
>
>
>
> >thank you!
>
> >Luke
>
>
> >----- Original Message -----
> >From: "Jeffery Painter" <[EMAIL PROTECTED]>
> >To: "Turbine Users List" <[EMAIL PROTECTED]>
> >Sent: Wednesday, August 20, 2003 5:25 PM
> >Subject: Re: AW: $link.setAction
>
>
> >>
> >> You could set the function you want called in your action class in a
> >> hidden field.
> >>
> >> <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>
> >>
> >> It works just as well as using a form submit element.
> >>
> >> You should only pass data and context through the doAdd function, use
> >> data.getParameters() to pull the otherData variable... these variables
> >> will not be passed directly to
> >>
> >> doAdd(Rundata data, Context context)
> >>
> >> good luck,
> >> Jeff Painter
> >>
> >> On Wed, 20 Aug 2003, Luke Majewski wrote:
> >>
> >> > Right, but the problem here is how do I specify what function I want
> >called
> >> > in "myClass" doing it this way. I don't want a button, I want a
link,
> >and
> >> > when I use a link and use the onClick (and submit the form through
> >> > javascript) it didn't work either. I'll try a couple other
variations
> >and
> >> > get back to everyone about this.
> >> >
> >> > Thank you for everyone's help!
> >> >
> >> > Luke Majewski
> >> >
> >> >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
>
>
>
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> --
> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen INTERMETA GmbH
> [EMAIL PROTECTED] +49 9131 50 654 0 http://www.intermeta.de/
>
> Java, perl, Solaris, Linux, xSP Consulting, Web Services
> freelance consultant -- Jakarta Turbine Development -- hero for hire
>
> "Dominate!! Dominate!! Eat your young and aggregate! I have grotty
silicon!"
> -- AOL CD when played backwards (User Friendly - 200-10-15)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]