You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew M <an...@jibeya.com> on 2004/11/22 10:03:27 UTC
HowTo pass cocoon variables into client-side javascript?
Hi,
in ASP I can do:
var testSessionState = <%= getSessionState %>
How can I achieve the same thing in cocoon?
regards
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: HowTo pass cocoon variables into client-side javascript?
Posted by Andrew M <an...@jibeya.com>.
Hi,
just to make things more understandable.....
1. User clicks on a link which opens a pop-up window
2. javascript in the pop-up window determines whether the session is
still current
3. If the session has expired, close the pop-up window, and reload the
referrer window
Hence the reason I need to know how to pass cocoon variables into
client-side javascript, not unless server-side javascript (rhino) is
now capable of this!! ;-)
regards
Andrew
On 22 Nov 2004, at 09:03, Andrew M wrote:
> Hi,
> in ASP I can do:
>
> var testSessionState = <%= getSessionState %>
>
> How can I achieve the same thing in cocoon?
>
>
> regards
>
> Andrew
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
Re: HowTo pass cocoon variables into client-side javascript?
Posted by oceatoon <t....@systheo.com>.
with JXTemplate
var myvar = "#{document/yourvalue/@val}"; //for a string
Regards,
Tibor
Andrew M wrote:
> Hi,
> in ASP I can do:
>
> var testSessionState = <%= getSessionState %>
>
> How can I achieve the same thing in cocoon?
>
>
> regards
>
> Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org