|Re: Programmatically Request New Page/URL Load in Existing Browser Window/Tab? [message #1746995 is a reply to message #1746865]
||Tue, 08 November 2016 12:28
| Sebastian Habenicht
Registered: January 2013
Depending on the the created piece of data, you may also use a Dialog with a Browser widget and show the data in that browser - either by creating the respective html code and set it using Browser#setText or by creating a (temporary) file on the web server and show it using Browser#setUrl. |
I think this is quite nice since the application remains visible and the presented content looks like being part of it. Additionally, the user can benefit from the dialog functionality (e.g. resize the dialog or drag it around). And finally, you have access to the browser widget, e.g. to add a ProgressListener or to react on events in the page (see BrowserFunctions). More info about it: 
However, this is probably no solution if you want to access external content, since the Browser widget is represented by an iframe and displaying external content in frames may be denied (X-Frame-Options, see ) or you may run into issues due to cross-frame-scripting restrictions.
If you create html code during runtime, make sure to test the functionality in all browsers you support.
[Updated on: Tue, 08 November 2016 12:30]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01517 seconds