Skip to Content

How to access HTML elements created with HTMLB using JavaScript: A short tutorial

Problem

The HTML elements created by HTML Business for Java (HTMLB) have ID-attributes, and the values of these attributes change with each iView invocation. These ID attributes are commonly used to uniquely identify and access certain HTML elements in an HTML page (or iView). This circumstance hampers attempts to access forms and input fields of an HTML form using JavaScript.

Solution

HTMLB provides access to the HTML IDs that are generated. After retrieving
the IDs, you can generate your JavaScript by setting the correct IDs at runtime.

Details

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply