Wednesday, February 6, 2013

Re: How to delay an anchor action to wait for a AsyncCallback?

Is this also the case (in general) for Window.open(servletURL, "_self", "");

Because using this call, I'm not getting any popup blocker message and the downloadable is created correctly. Of course it should not just work for me, but for all user ;)

2013/2/6 Jens <jens.nehlmeier@gmail.com>

So probably best solution might be to create a button that sends a RPC request to the server, and then call Window.open() on receiving the callback, which then calls a Servlet generating downloadable file.

Just be aware that calling Window.open() in an RPC callback will trigger the browsers popup blocker.

--
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+unsubscribe@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.
 
 

No comments:

Post a Comment