Re: Identify or get around popup blockers

2013-04-10 Thread Alexander Murauski
This is how to do it without native JavaScript:

First, create an empty window with the name "mySiperPuperTarget". This must 
be called synchronously i.e. not from any callback:

Window.open("", "mySuperPuperTarget", "");


Now, you can use the "mySuperPuperTarget" as a target name for your form 
and submit the from:

FormElement.as(form.getElement()).setTarget("mySuperPuperTarget");


The result of the submission will go to the new window. Since the new 
window is open in a sync call, there will be no popup blocker triggered.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Identify or get around popup blockers

2012-11-07 Thread M
Hi I was wondering if there is a work around for this issue? Above solution 
doesn't work for me, this is because
depending on the RPC condition, i might not want to open a new window. 

On Friday, 11 January 2008 00:36:01 UTC-6, golfdude wrote:
>
>
> In my app, I would like to open a new window using Window.open. But if 
> there is a popup blocker like in Firefox, then the user has to 
> explicitly allow popup options to my site. Is there a way to 
> workaround this ? I see that in Google pages, one can "preview" the 
> page and in that case, I dont see the Firefox popup blocker coming up 
> but a completely new browser window shows up. What do I need to do in 
> my GWT app to get the same behavior ? 
>
> Thx 
>
> -- pady

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/UTJtm0_NYmQJ.
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.