How to start a jQuery script after GWT finished DOM creation
Hi All,
Please suggest some some solution, how to start a javascript function after the whole page loaded in a browser. Not just the "skeleton", but after GWT finished its work to generate widgets. ($( document ).ready() runs before GWD finished it's work)
Thanks Your help.
Bonita 6.2.6
2 answers
Hello,
I don't know what you want to do, but you can use a JSNI method which will call your JQuery code. http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJSNI.html
If it is in a form, you can add a widget HTML, which contain your jquery call between
tag.
Hope this might help you
Nicolas
Comments
Hi, Sure, but this runs BEFORE the GWT generates the whole page, so the DOM is not ready then. Eg: A text widget is only an empty
I saw somwhere a solution to start a timer in javascript, check if the DOM is ready, and restart the timer if not. It is not an elegant solution:-(