KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Note: Offscreen Web Areas in v18 R3
PRODUCT: 4D | VERSION: 18 R3 | PLATFORM: Mac & Win
Published On: July 27, 2020

v18 R3 introduces an exciting new concept of Offscreen Web Areas. The new feature allows the developer to process rendered web page content or run custom JavaScript. This allows developers to tap into the embedded web rendering engine of 4D to load web pages, extract metadata, or generate pictures from the contents of a web page – even on a headless server.

This technical note describes the general concepts of using an Offscreen Web Area via the new WA Run Offscreen Area command that was added in v18R3. An example of using this command is included, which demonstrates adding a callback method to execute JavaScript as well as a few pointers on how to handle errors that may occur. This information should allow the 4D developer to utilize the Offscreen Web Area within their own projects.

Download Complete Tech Note: Tech Note Document