You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Shahid Shaikh <ss...@yahoo.com.INVALID> on 2014/09/19 16:19:58 UTC
Tapestry Expansion
How to get properties value in an external javascript file? Example: I have
this in my external JS file.
var link = "$(theLink)";
It does not expand.
Thank you for your help!
Re: Tapestry Expansion
Posted by Geoff Callender <ge...@gmail.com>.
Some examples:
T5.4: http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/robust
T5.3: http://jumpstart.doublenegative.com.au/jumpstart/examples/javascript/robust
Geoff
On 20 Sep 2014, at 1:52 am, Shahid Shaikh <ss...@yahoo.com.INVALID> wrote:
> Thank you Thiago for your response back
>
>
>
> ________________________________
> From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List Archives] <ml...@n5.nabble.com>
> To: shahidsan <ss...@yahoo.com>
> Sent: Friday, September 19, 2014 11:08 AM
> Subject: Re: Tapestry Expansion
>
>
>
> On Fri, 19 Sep 2014 11:19:58 -0300, Shahid Shaikh
> <[hidden email]> wrote:
>
>> How to get properties value in an external javascript file?
>
> It's not possible to do that directly. On the other hand, you can use
> JavaScriptSupport.addScript() or addInit() or require().with() (T5.4+) to
> pass whatever information you want from Java class to JavaScript.
>
>> Example: I have this in my external JS file.
>>
>> var link = "$(theLink)";
>>
>> It does not expand.
>
> That's expected. It's not a Tapestry template.
>
>
>
>
>>
>> Thank you for your help!
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
> ________________________________
>
> If you reply to this email, your message will be added to the discussion below:http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Tapestry-Expansion-tp5728422p5728423.html
> To unsubscribe from Apache Tapestry Mailing List Archives, click here.
> NAML
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Tapestry Expansion
Posted by Shahid Shaikh <ss...@yahoo.com.INVALID>.
Thank you Thiago for your response back
________________________________
From: Thiago H de Paula Figueiredo [via Apache Tapestry Mailing List Archives] <ml...@n5.nabble.com>
To: shahidsan <ss...@yahoo.com>
Sent: Friday, September 19, 2014 11:08 AM
Subject: Re: Tapestry Expansion
On Fri, 19 Sep 2014 11:19:58 -0300, Shahid Shaikh
<[hidden email]> wrote:
> How to get properties value in an external javascript file?
It's not possible to do that directly. On the other hand, you can use
JavaScriptSupport.addScript() or addInit() or require().with() (T5.4+) to
pass whatever information you want from Java class to JavaScript.
> Example: I have this in my external JS file.
>
> var link = "$(theLink)";
>
> It does not expand.
That's expected. It's not a Tapestry template.
>
> Thank you for your help!
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]
________________________________
If you reply to this email, your message will be added to the discussion below:http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Tapestry-Expansion-tp5728422p5728423.html
To unsubscribe from Apache Tapestry Mailing List Archives, click here.
NAML
Re: Tapestry Expansion
Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
On Fri, 19 Sep 2014 11:19:58 -0300, Shahid Shaikh
<ss...@yahoo.com.invalid> wrote:
> How to get properties value in an external javascript file?
It's not possible to do that directly. On the other hand, you can use
JavaScriptSupport.addScript() or addInit() or require().with() (T5.4+) to
pass whatever information you want from Java class to JavaScript.
> Example: I have this in my external JS file.
>
> var link = "$(theLink)";
>
> It does not expand.
That's expected. It's not a Tapestry template.
>
> Thank you for your help!
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org