|Re: Behavior of the URLLauncher service on different Browsers [message #1396575 is a reply to message #1393729]
||Tue, 08 July 2014 14:00
| Tim Buschtoens
Registered: July 2009
> Is there any configuration for the URLLauncher I can provide so that the
> file opens in Chrome without the extra window?
Currently, no. The URLLauncher can not predict how the browser will deal
with the URL, so it opens a new window/tab (it doesn't know the
difference) to ensure the content is visible, but does not navigate away
from the RAP application. It would be feasible to let the application
developer decide how an URL should be treated (at their own risk), but
there is no API for that yet. You could open an enhancement request on
bugzilla if you want.
However, you can simply do what the URLLauchner can do directly using
executer.execute( "window.location=\"" + url + "\";" );
I haven't tried it, but I think it should go directly go to the download
dialog, BUT ONLY IF THE BROWSER IS NOT CONFIGURED TO DISPLAY THE GIVEN
FILE DIRECTLY! In that case the RAP session would be terminated, so use
it at your own risk.
Professional services for RAP and RCP?
Powered by FUDForum
. Page generated in 0.02366 seconds