You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2008/03/25 03:06:17 UTC

T5: referring to default prototype.js

Hi,

How to refer to the default prototype.js come with t5? i use this, not
really t5's way:

 <script type="text/javascript"
src="${asset:context:js/prototype-1.6.0.2.js}" />

this works, but i have to duplicate the prototype.js. any idea? Thanks.

A.C.
-- 
View this message in context: http://www.nabble.com/T5%3A-referring-to-default-prototype.js-tp16266780p16266780.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: referring to default prototype.js

Posted by Chris Lewis <ch...@bellsouth.net>.
Hi Angelo,

If you use PageRenderSupport to do anything script related, or if you
use @IncludeJavaScriptLibrary, then it will be included in the resulting
page automatically. If for some reason you need to explicitly include
it, then you can annotate your page class with
@IncludeJavaScriptLibrary("${tapestry.scriptaculous}/prototype.js") and
it will be included.

chris

Angelo Chen wrote:
> Hi,
>
> How to refer to the default prototype.js come with t5? i use this, not
> really t5's way:
>
>  <script type="text/javascript"
> src="${asset:context:js/prototype-1.6.0.2.js}" />
>
> this works, but i have to duplicate the prototype.js. any idea? Thanks.
>
> A.C.
>   

-- 
http://thegodcode.net


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org