If you don't really need to open a new window to start the download, you could make a call to the server and fetch the url to de document. Then simply put this inside a hyperlink on the application or inside a dialogbox.
Then the user just need to click on the link to download the file. This don't make the user navigate to another window, if the HTTP headers defining the mime-type of the document are correct. There are also another HTTP header which forces the browser to download the contents of the url instead of display it, but i can't remember it... On Jun 8, 11:49 am, Darkman97i <jllte...@gmail.com> wrote: > Hi, > > Well when I execute some Window.open and there's some RPC still live > always is firing some error > Window.open(http://someweb.com/somedocumentPath, "_self", ""); > > I think the problem is that, the browser url is temporary broken by > new url, reason why rpc is closed and error is fired meanwhile browser > not detects that is a file to be downloaded. > > Really it's a stupid problem, but I don't find a good and simply idea > to solve it. > > 1- One solution could be open in a _blank window, but it's really an > horrible usability user interface option ( I think ). > 2- Other in the same way than the first could be open some new small > window, and when document is yet started to downloading close it > ( I've seen in some webs ). > 3- In some cases I can not ensure ( synhronize ) that there's no RPC > call before downloading. That could be a good option, but is not > possible in my case. > > Any idea it'll be wellcome. > > OpenKM Team ( be open my friend ) -- 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-tool...@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.