Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Window show - all controls loaded

    Dear all,

    I have a Window object with dynamically added controls. After windows.show() call a want to apply some jquery scripts to loaded controls, but for that i need to know that all the controls are rendered in browser window, so jquery does not fail. How do i accomplish that?

    Regards, Egi


    Part of the code:

    public static Window buildWindow() {
    .....
    window.show();
    window.bringToFront();

    // custom JS call through JNSI
    final CustomJS customJs = new CustomJS();
    customJs.run(params);

    return window;
    }

    // CustomJS class
    ....
    private void run(String params) { runJs(params); }
    private native void runJs(String params) /*-{
    // some jquery functions
    }-*/
    ....
    Last edited by mrpiagg; 19 Feb 2016, 05:46.

    #2
    show()/draw() are synchronous, so just call show() and immediately do your JQuery DOM manipulation.

    Be sure you've read the DOM Integration overview for general information on working with the framework at this level (including what is and isn't supported).

    Comment

    Working...
    X