Re: RenderSupport Scope

2010-05-30 Thread Pablo dos Reis
Thank you Martin! 2010/5/30 Martin Strand > If you want to declare a global function from within Tapestry.onDOMLoaded, > you can simply add it to the windows object: > > window.myGlobalFunction = function() { > doCoolStuff(); > } > > You can then access that function from anywhere if you pref

Re: RenderSupport Scope

2010-05-30 Thread Martin Strand
If you want to declare a global function from within Tapestry.onDOMLoaded, you can simply add it to the windows object: window.myGlobalFunction = function() { doCoolStuff(); } You can then access that function from anywhere if you prefer to do things this way: Martin On Sun, 30 May 2010

Re: RenderSupport Scope

2010-05-29 Thread Pablo dos Reis
Hi Thiago, When the Tapestry creates the script. It puts the script inside a other method. Tapestry.onDOMLoaded() in this case. So when I try call it method using a js the method created by RenderSupport is not visible for js. I resolved the following writer.element("script", "language", "Ja

Re: RenderSupport Scope

2010-05-29 Thread Thiago H. de Paula Figueiredo
On Sat, 29 May 2010 23:18:28 -0300, Pablo dos Reis wrote: When I inject javaScript using renderSupport not is possible access the methods created in the class through a js file. Hi, Pablo! I'm not sure what you're talking about, but remember that any JavaScript code added through RenderS

RenderSupport Scope

2010-05-29 Thread Pablo dos Reis
When I inject javaScript using renderSupport not is possible access the methods created in the class through a js file. Are there a way for access a JavaScript method overrided using renderSupport for a classe outside it, in the js for exemple ? -- Pablo Henrique dos Reis