Re: JSNI Question

2016-02-05 Thread salk31
I didn't know that, are there bug reports I could get the details from? On Friday, February 5, 2016 at 5:23:42 AM UTC, Stepan Koltsov wrote: > > Except there are lots of things that are not possible via jsinterop. (Or > maybe possible, but hard to find how to do it). > > For example: > > * JsArra

Re: JSNI Question

2016-02-04 Thread Stepan Koltsov
Except there are lots of things that are not possible via jsinterop. (Or maybe possible, but hard to find how to do it). For example: * JsArray still requires type parameter to extend JavaScriptObject, so you cannot work with cannot work with arrays of @JsType * you cannot do index without JSN

Re: JSNI Question

2016-01-14 Thread salk31
NB JSNI is being replaced by JsInterop... it is much nicer so if you are starting new code I'd strongly recommend you use it rather than JSNI. On Sunday, January 10, 2016 at 8:00:30 AM UTC, Gourab wrote: > > Let me understand your question. > > - You have a GWT application, where you want to expo

Re: JSNI Question

2016-01-10 Thread Gourab Panda
Let me understand your question. - You have a GWT application, where you want to expose few functionality/UI via JavaScript Api. If thats what you want to achieve: - Can you check if you have in the gwt module where the API is exposed ? - I dont think you need to prefaced anything with $wnd Re

Re: JSNI Question

2016-01-09 Thread Eric Nissan
I never got a response to this. Anyone know if this is an issue? Any help would be appreciated. Thanks, Eric On Tuesday, December 29, 2015 at 5:55:28 PM UTC-5, Eric Nissan wrote: > > I am using JSNI to reference a javascript library. My initial call is > fine, but then somewhere down they cha

JSNI Question

2015-12-29 Thread Eric Nissan
I am using JSNI to reference a javascript library. My initial call is fine, but then somewhere down they chain I get a null pointer inside the javascript library. I am referencing the library like this $wnd.TradingView.widget({}); which is a valid reference. This then seems to load in othe

Re: JSNI Question

2012-12-20 Thread Thomas Broyer
On Thursday, December 20, 2012 1:10:00 AM UTC+1, EMan wrote: > > How do I call a JSNI method from another JSNI Method? for example, how > can I get something1 to call something2? > > public static native void something1() /*-{ > something2(); > }-*/; > > public static native void something2(

JSNI Question

2012-12-19 Thread EMan
How do I call a JSNI method from another JSNI Method? for example, how can I get something1 to call something2? public static native void something1() /*-{ something2(); }-*/; public static native void something2() /*-{ $wind.alert("something2"); }-*/; Thanks. -- You received this messag

JSNI question

2010-02-03 Thread Paul Stockley
Is there a way I can get the obfuscated name of a JAVA object's field from within a JSNI method? I can get the actual value by using: [instance-exp...@class-name::field-name but what I want is just the @class-name::field-name as a string. The compiler gives an error if I omit the instance express

Re: Simple JavaScript/JSNI question: how to setup a function on the enclosing doc from inside an iframe

2009-05-23 Thread Vitali Lovich
Try private native void publish(MyWidget widget) /*-{ $doc.myFunction = widg...@com.myco.myapp::myMethod()(); }-*/; Then within the actual page, document.myFunction() On Sat, May 23, 2009 at 1:43 PM, BR wrote: > > For a reasons too long to explain here, my app is currently getting > d

Simple JavaScript/JSNI question: how to setup a function on the enclosing doc from inside an iframe

2009-05-23 Thread BR
For a reasons too long to explain here, my app is currently getting deployed in an iframe. I need to use JSNI to set up a JavaScript callback into my application. Both the iframe and the enclosing doc are loaded from the the same docbase, so there should be no security issues. private native

Re: JSNI question (extending ManagedIFramePanel, wrapping some other methods)

2009-03-23 Thread Thomas Broyer
On 22 mar, 20:51, DanG wrote: > public native Document getFrameDocument()/*-{ >         var panel = > th...@com.gwtext.client.widgets.component::getOrCreateJsObj()(); >         var doc = panel.getFrameDocument(); >         //alert(doc); >         if (doc) >                 return doc; >        

JSNI question (extending ManagedIFramePanel, wrapping some other methods)

2009-03-22 Thread DanG
public native Document getFrameDocument()/*-{ var panel = th...@com.gwtext.client.widgets.component::getOrCreateJsObj()(); var doc = panel.getFrameDocument(); //alert(doc); if (doc) return doc; return null; }-*/; if in my native javascr

JSNI question

2008-11-10 Thread benw
Hi, I need to create my own date class to handle UTC. When I try to construct a MyDate object, I get a "java.lang.NoSuchFieldError: mydate" exception in this code: private native void init(double date) /*-{ this.mydate = new Date(date); }-*/; Anybody know why? thanks for any help -Ben

JSNI question

2008-11-10 Thread bw
Hi, I need to create my own date class to handle UTC. When I try to construct a MyDate object, I get a "java.lang.NoSuchFieldError: mydate" exception in this code: private native void init(double date) /*-{ this.mydate = new Date(date); }-*/; Anybody know why? thanks for any help -Ben

JSNI question

2008-11-10 Thread bw
Hi, I need to create my own date class to handle UTC. When I try to construct a MyDate object, I get a "java.lang.NoSuchFieldError: mydate" exception in this code: private native void init(double date) /*-{ this.mydate = new Date(date); }-*/; Anybody know why? thanks for any help -Ben