【正文】
Document object – This object allows you to alter the properties of the document that you are displaying. The () method allows you to write new content to the page as it is being rendered. Navigator object – This object allows you to discover attributes about the browser that is displaying the page. This information can be used to identify the browser’s supported capabilities and provide custom results for the various browser types. 10 169。 2020 BMC SOFTWARE, INC. What are Hyptertext Templates? Hypertext templates provide a code skeleton from which dynamic html pages can be derived. Through a bination of copying code directly from the templates, performing variable substitution and Macro execution, the hyptertext templates produce html pages that contain dynamic content derived directly from the pages found within the Visualizer templates you are processing. 6 169。 1999 BMC SOFTWARE, INC. Hypertext Templates Customizing Visualizer Web Publishing Output Perry A. Stupp Sr. Software Consultant 2 169。 2020 BMC SOFTWARE, INC. Introduction Through the use of Hyptertext templates PATROL For Performance Management users can customize the output of their Visualizer Web Publishing efforts. This paper will explain how this process works and detail the steps required to address the most monly requested changes to Visualizer’s output. 3 169。 2020 BMC SOFTWARE, INC. Variable Substitution / Macro Execution Special tags embedded within the Hyptertext templates are expanded during processing to provide access to the content found within the Visualizer templates. These tags are easily identified by their Visual prefix. Visual/Variable Where Variable can be any of nGpP Number of Graphs per Page in the template. Scan= Replace the variable with the graphic file and place a copy of the file in the output directory. Scan= Force the processing of the hyptertext template, replacing the entry with the name of the resulting file. Note Replace with the notes for the project or page. ByPage Process the BYPAGE Template. 7 169。 2020 BMC SOFTWARE, INC. VBScript and JavaScript A programming language is required to change the content of the Object Model. Javascript provides the most extensive language support since VBScript is only available in Microsoft’s Inter Explorer. For this reason, the current implementation uses Javascript although, if you have an all Microsoft environment, you may want to consider using VBScript instead (if it is easier or provides additional benefits / capabilities). 11 169。 2020 BMC SOFTWARE, INC. Frames frameset cols=“300,*” frame name=“l(fā)efty” src=“” frame name=“righty” src=“” noframes Frames can be used to split a page into either columns or rows. Specifying the cols attribute splits the screen horizontally as illustrated. The frame tag is used to specify the name and source of the html for the various columns on the page. 15 169。) frame name=contents src=“ base target=main39。 2020 BMC SOFTWARE, INC. Processing Flow The Web Export processing flows through several templates before producing the final Web pages. Having a Visual representation of this flow makes it easier to understand when each step occurs and the output that it produces. 19 169。frameset cols=300,*39。frame name=contents src=Visual/Scan= … else … 39。frameset cols=300,*39。frame name=logo src=? … if (3 1) … 39。) 22 169。CENTERtable cols=3 width=66% align=center39。 2020 BMC SOFTWARE, INC. Generating Web Publishing This section covers some of the steps necessary to produce the Web Publishing output available from Visualizer. Although a discussion on how to build effective templates is probably warranted it is beyond the scope of this presentation and should be addressed in a separate paper. As such, it is assumed that the user knows how to build at least a basic template for use with this effort. 24 169。 2020 BMC SOFTWARE, INC. Accessing the Publishing options You can also use a keystroke file to script the processing of the export which yields additional flexibility. 28 169。 2020 BMC SOFTWARE, INC. Exporting Tables If you would like to make the underlying values within the graphs available as tabular output, simply add a note for the project with the following text: (see table) 31 169。 2020 BMC SOFTWARE, INC. How page layout affects the output If you create your template with more than one graph per page then the frame on the left side of web the page will contain a list of available pages. 35 169