Things to watch out for
Here are some things to watch out for:
- Understand and accept the risks that low level access to a DOM structure inherently involves (see the preceding section for more about this).
- Check that you are not impacting the performance of your application. Doing such a check is easy. Comment out or disable your logic. Do some timing tests using a PC that has a performance profile like a typical end user’s PC. Then repeat the tests with your logic enabled.
- Do not become over-focused on a 5250 screen. For example, imagine you have a customer inquiry 5250 screen. You want to add a Google Maps image to your application to show the customer’s location. There are two ways to do this:
- Add an IFRAME to your 5250 screen with the required JavaScript logic.
- Simply add another tab called "Map Location" to your VLF application.
Of these, the latter would be simpler and easier to implement. It is also ‘on demand’ rather than cluttering up your screen with information that most people do not need to see most of the time.