Yep, i think this was added in 4.0.1 Ashton Hepburn wrote:
>Using Tapestry4 you can use the Script component and specify the scriptAsset >parameter instead of scriptpath: > >http://jakarta.apache.org/tapestry/tapestry/ComponentReference/Script.html > >On 4/5/06, Sam Gendler <[EMAIL PROTECTED]> wrote: > > >>I have to include a javascript file which must be located in my /js >>directory due to dependencies on relative file paths (turbo and dojo, >>if you must know). It appears that I can only include a resource in a >>.script file if it is in my classpath, and then it is included via >>some horribly complicated URL. >> >>Is there some way that I can just inject a <script >>language="JavaScript" type="text/javascript" >>src="${scriptPath}></script> line via a .script file, preferably into >>the head? I've been struggling for a good long while, and I have yet >>to figure it out. I should point out that I am not much of a >>javascript code. There is probably some javascript function I could >>write that would modify the head element by adding a new script >>element to it, but I don't know how to write it, offhand, and I'm too >>frazzled by a long day to try to figure it out. So I turn to the >>collective wisom in desperation. >> >>Thanks >> >>--sam >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: [EMAIL PROTECTED] >>For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]