Package Overview
The HTML package contains two sub-packages.
Utility sub-package functions allow you to translate Riverbed models to HTML form. Ets_Html_Generate() allows you to create a set of HTML and GIF files that represent the current scenario. This function drives the Export to HTML option. The Ets_Html_Browser_Launch() function launches a web browser and causes it to open a specified document. Ets_Html_Element_Link_Nt_Object_Set() and Ets_Html_Element_Link_Nt_Objects_Set() change HTML elements into links to model objects; these links can be used from a web report to select the objects and zoom the Project Editor view to show them. Ets_Html_From_Ot_Generate() creates a web report from an output table (OT) file. Ets_Html_Nt_Imagemap_Generate() and Ets_Html_Nt_Imagemap_Generate_Core() create an image map representing the network contained in a subnet.
Core sub-package functions provide a simple, structured approach to generating dynamic HTML documents. The documents are dynamic in that their contents are determined as a function of the state of the program. For example, a report on the positions of objects in a network can be created by extracting the corresponding attribute values from the objects and making appropriate calls to HTML package functions to generate the desired HTML.
Core sub-package functions provide you with an abstraction from the low-level HTML syntax and mechanics. While simple, this abstraction is powerful enough to support a wide variety of content and formatting approaches. Furthermore, to ensure total flexibility, it provides an option for introducing "raw" HTML into the generated pages. The alternative to using the HTML package is to create strings containing HTML code and output them to files, which is significantly less compact and elegant from a programming point of view.
This description refers to a source code example found in the Sample Program.