Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Generating Javascript link for cgi

Cliff Willsher

2008-09-05

Replies: Find Java Web Hosting

Author LoginPost Reply
Hi,

I'm using Tapestry 5.0.14 and trying to generate a script link where the
source of the javascript is obtained via a cgi.

e.g.
  <script language="javascript"
src="http://some.domain/some.cgi?key=onBsgdeFET"></script>

One complication of this is that the "key" query parameter value is dynamic.
Also I must place this script tag after prototype.js has been included.

I know that the @IncludeJavaScriptLibrary annotation will place the
script tag in the correct place but how would I make that dynamic?

I know that RenderSupport.addScriptLink() will place the tag in the
correct place but that requires an Asset object.

I would be very grateful if anyone knows how to get this kind of script
tag at the end of the page.

TIA

Cliff



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.