You might need to add the script to the DOM in your afterRender() for layout component http://tapestry.apache.org/dom.html , or if that doesn't help, you might need to take MarkupRenderFilter approach, http://tapestry.apache.org/meta-programming-page-content.html
On Feb 26, 2012, at 6:10 PM, harry wrote: > Hi everyone! > > My first Tapestry site is about to go live. Very exciting time. In fact, I > was so excited that I decided to add olark live chat. > > And it didn't work -- the "chat now" hover window never appeared. > > olark installment requires a script block: > > > > to be placed "right before the last </body> tag." > > I attempted both (1) adding the block to layout.tml, and (2) using @import > to point to a .js library, one that contains code inside the script block > (including the "literal" and "CDATA" stuff). Neither worked. > > One observation: the Tapestry5-JQuery component adds another script block > after the hard coded olark script block. Could that be the problem? > > Any help will be greatly appreciated. > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/OLark-script-block-tp5517659p5517659.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 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org