On Fri, 13 Jan 2012 08:54:09 -0200, angelochen
<[email protected]> wrote:
Hi,
Hi!
I have js file like following and I'd like it to be run when page is
loaded, using @Import includes the js file, but not running it, any way
to achieve this? Thanks,
All JavaScript code in a .js file added to an HTML page is executed. Maybe
your code is just being ran before the page is ready. Try wrapping your
code in a function and use JavaScriptSupport.addScript() to invoke it.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]