Man did I get censored? Sorry if I rubbed anyone up the wrong way with my 
posts... Regards Paul



----- Original Message ----
From: blain <[email protected]>
To: Google Web Toolkit <[email protected]>
Sent: Tuesday, 23 June, 2009 21:05:28
Subject: Re: New Browser Window


Button button = new Button("click me");
button.addClickListener(new ClickListener() {
        public void onClick(final Widget sender) {
            Window.open("http://www.google.com";, "_BLANK", "");
        });


http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview-summary.html


On Jun 23, 10:40 am, Jason Essington <[email protected]>
wrote:
> just remember, you have to do this as a direct result of a user action  
> (button click for example) otherwise any popup blocker will prevent  
> the window from opening.
> Attempting to open a window from within a DeferredCommand, or as a  
> result of an XHR callback will fail if popup blockers are enabled.
>
> -jason
> On Jun 23, 2009, at 8:03 AM, Thomas Broyer wrote:
>
>
>
>
>
> > On 23 juin, 13:25, abhiram <[email protected]> wrote:
> >> Hi,
>
> >>   From my application, I want to open a new window with a url which  
> >> is
> >> passed from my application. Eg: If i click a button or something a  
> >> new
> >> window should open with the url "www.google.com" where this URL is
> >> being passed from my application as a parameter. Which would be the
> >> best method to implement this?
>
> > Window.open() ?

--~--~---------~--~----~------------~-------~--~----~
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