You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Stephane Decleire <sd...@cariboo-networks.com> on 2009/02/12 18:38:40 UTC

T5 : How to add a javascript file by its url ?

How can one add a javascript file to a Tapestry component by its url and
not its path ?

It would be usefull to integrate other framework like GoogleMaps wich
has this kind of url :
    <script type="text/javascript"
src="http://maps.google.com/maps?file=api&amp;v=2.x&amp;key=..."></script>
or DWR with those urls :
    <script type='text/Javascript' src='/myapp/dwr/engine.js'></script>
    <script type='text/Javascript' src='/myapp/dwr/util.js'></script>

Stephane