George,
Sorry about the late reply.
I hard-coded the OLark script in the afterRender() function of the Layout
component, using javaScriptSupport.addScript(=)
Best,
Harry
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/OLark-script-block-tp5517659p5720501.html
Sent
I'm dealing with this exact issue right now, and it makes me wonder why the
UserVoice script works fine, but Olark does not.
Harry, did you have to put this code on every page, or did you put it in
the layout? Also, did you hard-code the script, or load it from a file?
-George
On Sun, Feb 26, 2
Iprimak,
It worked like a charm! Thank you.
So it turns out using the JavaScriptSupport @Environmental and a call to its
addScript in the layout page's afterRender does the trick. Wonder why
that's the case.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/OLark-script-b
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, ha