From javascript to java (A GWT story)
问题 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 in the browser. What I want to do is ask sketchup to give me the contents of its model. public static native void getModel() /*-{ $wnd.location = "skp:getModel@"; }-*/; After a second sketchup has a result. But how do we get it back to gwt? The problem is the entrypoint instance launched the request