I did the below and it worked fine in hosted mode, I am running GWT
1.6

What version are you running?

On May 31, 10:19 pm, "Dean S. Jones" <deansjo...@gmail.com> wrote:
> this is a little hackey, and doesnt work in hosted mode, but...
>
> public void onModuleLoad() {
>                 final Button sendButton = new Button("Send");
>
>                 RootPanel.get("sendButtonContainer").add(sendButton);
>
>                 sendButton.addClickHandler(new ClickHandler()
>                 {
>                         public void onClick(ClickEvent event) {
>                                 mailto("whate...@gmail.com","hello");
>                         }
>                 });
>         }
>
>         public void mailto(String address, String subject)
>         {
>                 this.mailtoImpl(address, URL.encode(subject));
>         }
>
>         private native void mailtoImpl(String address, String subject) /*-{
>                 $wnd.location = "mailto:"; + address + "?subject=" + subject;
>         }-*/;
>
> On May 31, 10:13 pm, "Donald.W.Long"
>
>
>
> <donald.w.l...@thelongsfamily.com> wrote:
> > Hi all,
>
> > Most likely this is a stupid question but what I need to do is have a
> > button that the user hits and then it does the normal mailto: href.
>
> > What is the code to accompilish this?
>
> > Thanks and sorry for such a simple question.
>
> > Donald W. Long- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to