Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note: Please use caution when adding external API's like "ajax.googleapis.com", some pages may contain references to external domains (i.e. youtube.com or www.google.com) that may or may not be omitted without serious impact to the look and feel of a web[age.

Configuring a folder for downloads

Using FEWS release 2020.02 and later the folder used to download files can be configured using a global property, DOWNLOAD_FOLDER you can add to the global.properties file (i.e. DOWNLOAD_FOLDER=%REGION_HOME%/Download) If you do not configure this, a dialog box will pop up to ask the user where he wants to put a downloaded file.

note: in earlier releases downloaded files would go to %REGION_HOME%/temp/session and did not have the expected file name, a bit inconvenient.

Displaying Content

To display content in the Web Browser Display, topology nodes can be extended with optional URLs. In the following example, a SA test application (FEWS-Swiss was used) to show the potential variety.

...

Note: There are restrictions in Google Chrome regarding the loading of files from the local file system; links to files on the local file system (file:///) are allowed only in html documents that have been loaded from the local file system as well. In general best practice is to always use relative paths/urls to images and other files that are referred to in a html document, so if the html page is hosted on a local file system the browser would also look for included images etc. there. This restriction can not possibly be overruled by listing local files in the WebBrowserDisplay.xml white list.

Example display 

Developer Tools (debugging)

A new feature which is available in FEWS 2020.02 and later versions is the use of the Crome Developer Tools which can be very helpful if a specific web application does not function properly in the embedded web brower. To use this, you need to run FEWS in debug mode (-Dlog.debug=true) and it will support remote debugging, to use this you open a seperate Chrome browser window and enter the url "http://localhost:9222" to connect to the debugging session.

Downloads

Anchor
downloads
downloads

...