Hi all, i'm trying to execute this method: public static native void showUploadPopup(String sendButton, ConfirmCallback cb) /*-{ $wnd._nativeExtensions = false; var html='<input type=\"file\" name=\"upload\" id=\"upload\" size= \"40\"><br><div align=\center\"><input type=\'button\' style=\"width: 65;height:25\" value='+sendButton+' onclick=\"res=$doc.getElementById (\'upload\'); hideBox(res) \" /> </div>'; $wnd.Modalbox.show(html, {title: false}); $wnd.hideBox = function (res){ $wnd.Modalbox.hide({afterHide: function(btnID) {...@org.ratis.gui.system.client.effects.tbkeffect.confirmcallback::execute (Ljava/lang/String;)(res)}}); } }-*/;
but the result is that $doc is not defined! Why? $doc and $wnd should be initialized automatically... thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---