jsni Questions
5
Solved
I am trying out the new Firestore by Firebase. When I run the code sample from https://firebase.google.com/docs/firestore/manage-data/add-data?authuser=0, I am getting an error.
// Add a new docum...
Jellaba asked 7/10, 2017 at 12:32
2
Solved
I am a newcomer to GWT and JavaScript.
There are similar question of this type I have tried to follow, but I keep failing.
I have a GWT app, I need to call a Java function from Javascript( on the...
Dymoke asked 18/4, 2013 at 10:9
3
Solved
Here is caller button samples in html:
<input type='button' value='Call' onclick='Test()'>
And here are some functions I tried and which were not worked:
<script type="text/javascript"...
Quartersaw asked 14/2, 2012 at 12:40
2
Solved
I have Object that I wish to pass from JavaScript to Java in GWT app.
This object may have arbitary fields. So it is different from very similar question were only number is passed.
Passing javas...
Smelter asked 27/2, 2014 at 17:42
1
Solved
I want to pass a success and a failure callback Java function to a JSNI method.
This is what I get so far but it does not work. How can I fix it?
package c;
public class A {
test(new Callback&l...
Nous asked 5/12, 2013 at 18:37
2
Solved
(That title alone should cause people to come out of the woodwork to bash me with clubs, but hear me out).
I have a use case where I need to return a value from a asynchronous call. (I'm using GWT...
2
Solved
I have some logic in native method, which returns sth or null - they are both valid and meaningful states, and I want to throw an exception on method's failure. As it is native JSNI i am not sure h...
Moorish asked 18/7, 2012 at 17:56
1
Solved
There is this $entry method that we can use in GWT to allow external javascript to execute java methods.
You can see the explanations in their documentation https://developers.google.com/web-toolki...
1
I was trying to write a generic clone function which should be able to do true deep cloning. I have come across this link, How to Deep clone in javascript and took the function from there.
That c...
Melodie asked 11/1, 2013 at 7:22
2
Solved
An external javascript gives a number that should be handed over to Java method named mycallback.
I have defined:
Java:
class MyClass {
public static void mycallback(JavaScriptObject number) {
...
2
Solved
I am using Google Web Toolkit for a project and would like the user to select a text file to open in a text window inside the browser. Here's the almost working code:
private DialogBox createUplo...
Bobby asked 12/4, 2012 at 21:19
1
Solved
Can anyone help with what is wrong in the code below(based on the answers to a similar question asked on SO):
public String javaMethod(String input) {
return "it works";
}
public native void d...
1
Solved
In the Display Object class, I have everything wrapped excepted the events. I can't not figure out the pattern and really need an example.
In JavaScript, you create a callback for the object like ...
Washerwoman asked 7/3, 2012 at 17:56
1
Solved
I am running a GWT application in hosted mode. Sporadically I get a strange HostedModeException complaining about the type of the JS value returned from JSNI. Sometimes it is during deserialization...
Struve asked 18/1, 2012 at 16:23
1
Solved
Is it possible to call Java (GWT) methods from Javascript? It is also unclear from documentation. All samples here http://code.google.com/intl/ru/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html...
Buford asked 23/12, 2011 at 18:3
1
Solved
Can't understand from the manual: how actually to run JS function from Java?
For example, I have a function in my html page:
<script type="text/javascript" language="javascript">
fun...
1
Solved
So, I'm designing an app in GWT for an embedded web browser (Sketchup). I can control Sketchup by changing the window.location value to "skp::myFunciton@myParams". Sketchup can execute javascript i...
Septima asked 15/12, 2011 at 20:43
2
I'm working in a native function inside a GWT application and I've tried this two methods: document.getElementById("id") returns null but $doc.getElementById() returns a valid element.
Which is the...
1
I have a GWT project and I would like to add a script tag to the main html file of the GWT project that calls a Java function located in my client code.
According to the documentation I should add...
Saker asked 27/3, 2011 at 19:39
1
Solved
Cannot find any developer information about this function. I just know that it's suggested to wrap JSNI JavaScript calls to Java methods with this $entry function. I found that it catches exception...
Aviculture asked 27/3, 2011 at 12:0
2
Solved
I'm trying to provide some function hooks in my GWT project:
private TextBox hello = new TextBox();
private void helloMethod(String from) { hello.setText(from); }
private native void publish() /*-...
1
Solved
I'm trying to quickly learn GWT as part of a new project. I found out that GWT doesn't implement Java's String.format() function, so there's no printf()-like functionality. I knew that some printf(...
Grimona asked 22/2, 2011 at 23:23
1
Solved
I've got a gwt application and I want to scroll to the top of a page using this method:
public static native void scrollTop() /*-{
$wnd.scroll(0, 0);
}-*/;
The method is called in the onClick-m...
Diligence asked 7/7, 2010 at 12:51
1
Solved
I am exporting a GWT method to native javascript in the following manner:
public class FaceBookGalleryEntryPoint implements EntryPoint {
@Override
public void onModuleLoad() {
FacebookGallery...
1
Solved
I am building a GWT app that uses Web SQL Local Storage (
http://dev.w3.org/html5/webdatabase/ ).
The problem is that the Web SQL API uses callback functions as
arguments.
Is it possible to pass "...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.