You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Edoardo Campagnano <ed...@dappolonia.it> on 2006/10/26 13:02:37 UTC
Tacos and Javascript Function: which comoponent?
Hi to all,
here's my poblem: I've got a javascript function that returns a String, I
need to call a listener sending the result string from the function as
argument for the listener. Which is the best method to do this? I think a
Tacos component but don't know what and how..
Thanks in advice
Edoardo
RE: Tacos and Javascript Function: which comoponent?
Posted by Edoardo Campagnano <ed...@dappolonia.it>.
Thank you,
can you explain better maybe with an example? There's no way to use
something like tacos:AjaxDirectLink?
Bye, Edoardo
-----Original Message-----
From: Karthik N [mailto:karthik.nar@gmail.com]
Sent: giovedì 26 ottobre 2006 14.44
To: Tapestry users
Subject: Re: Tacos and Javascript Function: which comoponent?
use a hidden field to set the output of your javascript function. this
hidden field is bound to a tapestry property. that way it will get set in
the rewind cycle.
in order to cause a submit you can have a hidden AjaxSubmit button that you
can cause a click() on after you've set the hidden property
On 10/26/06, Edoardo Campagnano <ed...@dappolonia.it> wrote:
>
> Hi to all,
>
> here's my poblem: I've got a javascript function that returns a String, I
> need to call a listener sending the result string from the function as
> argument for the listener. Which is the best method to do this? I think a
> Tacos component but don't know what and how..
>
>
>
> Thanks in advice
>
>
>
> Edoardo
>
>
>
>
>
--
Thanks, Karthik
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tacos and Javascript Function: which comoponent?
Posted by Karthik N <ka...@gmail.com>.
use a hidden field to set the output of your javascript function. this
hidden field is bound to a tapestry property. that way it will get set in
the rewind cycle.
in order to cause a submit you can have a hidden AjaxSubmit button that you
can cause a click() on after you've set the hidden property
On 10/26/06, Edoardo Campagnano <ed...@dappolonia.it> wrote:
>
> Hi to all,
>
> here's my poblem: I've got a javascript function that returns a String, I
> need to call a listener sending the result string from the function as
> argument for the listener. Which is the best method to do this? I think a
> Tacos component but don't know what and how..
>
>
>
> Thanks in advice
>
>
>
> Edoardo
>
>
>
>
>
--
Thanks, Karthik