Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Jens
> Thanks that worked! Given that this flag was off by default, what are the > main ramifications of leaving it on? > The flag is not active by default because your project might depend on GWT libraries that are also published as pure JS libraries by exporting the GWT code to JS using JsInter

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
Thanks that worked! Given that this flag was off by default, what are the main ramifications of leaving it on? . The below code is successfully exported globally when the flag is on: @JsMethod(namespace = JsPackage.GLOBAL, name = "handleOpenUrl") public static void runMe(String url) {

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Juan Pablo Gardella
Check if this flag is activated -[no]generateJsInteropExports Generate exports for JsInterop purposes (defaults to OFF) On Mon, 13 Feb 2017 at 14:01 Paul Mazzuca wrote: > Thanks for the quick reply. This was my first inclination, which does not > work. > > @JsMethod(namespace = JsPackage.GLOB

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
Thanks for the quick reply. This was my first inclination, which does not work. @JsMethod(namespace = JsPackage.GLOBAL, name = "handleOpenUrl") public void runMe(String url) { Window.alert("Success"); } Perhaps, I am doing it wrong, but I had always thought the JsInterop wraps existing

Re: JsInterop Question regarding execution in index.html

2017-02-13 Thread Juan Pablo Gardella
You can use jsinterop . On Mon, 13 Feb 2017 at 13:24 Paul Mazzuca wrote: > I need to create a javascript function called "handleOpenUrl(url)" that > will be called from a Cordova plugin

JsInterop Question regarding execution in index.html

2017-02-13 Thread Paul Mazzuca
I need to create a javascript function called "handleOpenUrl(url)" that will be called from a Cordova plugin (https://github.com/EddyVerbruggen/Custom-URL-scheme) for a hand off from a mobile browser. If I create the function inside my index.html, it is called successfully. The challenge is h