NetAlive Documentation

Textual HTML Widget

Inputs 8-11: data inputs (all the same).
Outputs 2-4: data outputs (all the same).
Input 7: address (standard interpretation).

Interprets data as HTML and displays it as text. The display cannot be changed, but clicking on a HTML hyperlink produces a URL as output.

Behavior

Inputs get concatenated with implied synchronization into a single input value. However, "Asynchronous" simply routes input messages to an input value.

"Extended behavior" enables the "history feature" described below.

Produces an output when the mouse gets clicked on a hyperlink. The output value is the hyperlink's fully-qualified URL. (Note: the widget stores a base URL for each page.)

Note: This widget has a capacity of 32767 characters.

Appearance

Displays a read-only text box on the screen with input data interpreted as HTML. Hyperlinks get a visible «highlight» and are active. Inline images are not displayed by appear as <image>.

"Use heading as caption or status message" places the task's caption to the upper-left of the button as a heading.

The display contains the internal data initially and then input data as it arrives.

History Feature

The history feature enabled by "Extended behavior" stores input as "pages" and permits display of the (dynamically-changing) current page or any (fixed) previous page.

The widget has two display modes with history enabled: (1) "last page mode" where the widget displays the last page received, and (2) "specific page mode" where the widget displays a specific page, storing received pages but not displaying them immediately. (Note: the last page can appear in either mode.)

Inputs 8 and 10 control the mode and the specific page being displayed. Receipt of a message containing just a "+" or "-" character increments or decrements the number of the page being displayed. Receipt of a message containing an integer changes the display to that page. HTML input arrives on input 9.

If the widget is in "last page mode" and a "-" arrives on inputs 8 or 10, the widget changes to "specific page mode" and displays the second-to-last page (what if it doesn't exist?). (If the widget is in "last page mode" and an integer arrives on inputs 8 or 10, the widget changes to "specific page mode" and displays the specified page.)

If the widget is in "specific page mode" displaying the last page and a "+" arrives on inputs 8 or 10, the widget changes to "last page mode."

The widget reports changes in the page displayed on the status bar when in "specific page mode."

Interactive Demonstration

Press to invoke html.net.

The pushbuttons HTML 1 and HTML 2 contain fragments of HTML as internal data. Clicking each button transfers its internal HTML to a text widget (on top) and a Textual HTML widget (on the bottom).

HTML 1 contains a long line and two images. The HTML widget wraps the line whereas the text widget does not (it scrolls). Textual placeholders appear in lieu of images.

HTML 2 contains a hyperlink. Observe the textual queue for the hyperlink. Click on the hyperlink; observe the "Hyperlink output."

Note: the status bar gets a message of the form "Hyperlink to url from basename" when a hyperlink is activated. This sample does not generate a base name, so the field is blank.

Press to invoke history.net.

The pushbuttons Fox, Spain, Stitch, and BUICK contain fragments of HTML as internal data. Clicking each button transfers its internal HTML to the Textual HTML widget. The Textual HTML widget has history enabled.

Press Fox, Spain, Stitch, and BUICK several times to create some history. The arrow buttons ("<" and ">") navigate through the history. Try them.

Press "<." This assures the widget is in "specific page mode." Now click one of Fox, Spain, Stitch, and BUICK. Note that the display does not change, but a message appears in the status bar.

Press ">" until you are at the end of the history list and then press it once more. This assures the widget is in "last page mode." Now click one of Fox, Spain, Stitch, and BUICK. Note that the display changes.


[NetAlive Documentation Home Page][NetAlive Home Page]