you'll need JSNI and a bridge method

the ' bridge method' part of this article may help
http://timepedia.blogspot.com/2007/06/gwt-demystified-generators-part-deux.html


On 23 Feb., 22:10, Stanley Wong <[email protected]> wrote:
> Specially, this call fails here:
>
> >                         String s = getValue();
> >                         try {
> >                                 applet.getAppletContext().showDocument(
> >                                                 new 
> > URL("javascript:doAlert(\"" + id + "\",\"" +  s + "\" )"));
> >                         } catch (MalformedURLException e) {
> >                                 // TODO Auto-generated catch block
> >                                 e.printStackTrace();
> >                         }
>
> in which this script function is not called.
>
>   <script>
>         function doAlert( id, message ){
>                 alert(message);
>         }
>
>         function setValue2(msg){
>                 setValue2(msg);
>         }
>   </script>
>
> How do I fix the URL? Or other methods can help?
>
> Stanley

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to