Hi there! Unfortunately my popup function is not working and I think that I found the reason. Please have a look at the JS code, could it be that "com.google.gwt.client.Index::createPopup()();" is wrong? How can I find out what the real path is of my class called Index? Can anybody help? It works without any error messages but the GWT function is never executed.
My Java code: package website.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.Window; /** * Entry point classes define <code>onModuleLoad()</code>. */ public class Index implements EntryPoint { // EntryPoint! public void onModuleLoad() { // Für JavaScript Interface setShowTrigger(this); } public native void setShowTrigger(Index x) /*-{ $wnd.runApp = function () { x...@com.google.gwt.client.index::createPopup()(); }; }-*/; public void createPopup(int i) { Window.alert("I'm a GWT function"); } } My HTML code: <input type="button" onclick="runApp()" text="click me" value="Test me"/> Thanks in advance for helping me!!! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---