never did this myself, but i think this should work somehow if there is a myid property...
instead... you could use the RenderSupport service to render your script programmatically g, kris Angelo Chen <angelochen...@yahoo.com.hk> 05.05.2009 09:22 Bitte antworten an "Tapestry users" <users@tapestry.apache.org> An users@tapestry.apache.org Kopie Thema t5: embed a variable in a javascript in a tml? Hi, I'd like to get myid from the page, but following code will not work, the line: var google_conversion_id = "${myid}" will be rendered as it is, it is not as what I expected var google_conversion_id = "12345678" any idea how to embed a variable in a javascript in the template? thanks Anelo <script language="JavaScript" type="text/javascript"> <!-- var google_conversion_id = ${myid} var google_conversion_language = "en_US"; var google_conversion_format = "3"; var google_conversion_color = "ffffff" //--> </script> -- View this message in context: http://www.nabble.com/t5%3A-embed-a-variable-in-a-javascript-in-a-tml--tp23382334p23382334.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org