Results 1 to 3 of 3

Thread: Dynamically load javascript library and native javascript calls

  1. #1
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    88

    Default Dynamically load javascript library and native javascript calls

    I'm trying to including a javascript library dynamically (unfortunately, there's no GWT version), and I'd like to invoke a few native functions in this library.

    what's the proper way to do this? JSNI? any good examples?

    thanks,

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572

    Default

    as way of example, in OFCGWT I've included SWFObject via JSNI....

    http://code.google.com/p/ofcgwt/

  3. #3
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    88

    Default

    Thanks,

    I'm trying to load the library and invoke some native javascript call when I open a gxt window, I'm not sure which event is triggered after the window is added into the DOM.

    I tried override Window.afterRender(), it looks that my html element has not been added into the DOM, document.getElementByID return null. onAttach() seems to be invoked every time I show the window (after I hide it). btw, I'm trying with the WebDeskop.

    So when exactly does the afterRender/OnRender/Attach() get called?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •