Problem with Window.Location.assign

26 views
Skip to first unread message

Gowtham Reddy

unread,
Apr 19, 2017, 2:46:33 AM4/19/17
to GWT Users
I have two parallel GWT requests to server,once the server completes it will return a download link.
I am using Window.Location.assign to download the content.Problem here is that when two requests complete at same time first request by Window.Location.assign(URL) is discarded so only one file is downloading.
Is it the correct behavior?or is there any other way to do it?

Rodolfo Raya

unread,
Apr 19, 2017, 6:36:44 AM4/19/17
to google-we...@googlegroups.com
Hi,

Use a line like this to download the files:

            com.google.gwt.user.client.Window.open( "http://target_url_here", "_blank", null ); 

Hope this helps,
Rodolfo

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages