Choosing a Header


Standard Webulator/400 Header

The standard Webulator/400 header contains the following HTML entries:
   <HTML>
   <HEAD>
   <TITLE> (Text From First Output Field) </TITLE>
   </HEAD>
   <BODY TEXT=Monochrome Text Color
         BACKGROUND=Background Image
         BGCOLOR=Background Color
         ONLOAD="SetFocus()">

Using a Custom Header

Webulator/400 allows you to replace the standard header with either an HTML or plain text custom header. This feature allows you to control what will appear above the 5250 terminal data in the HTML form. For example, you can include a link to your company's home page or an address for sending email.
Custom HTML Headers
If you choose to create a custom HTML header file, it must include the following tags:
   <HTML>
   <HEAD>
   <TITLE> (Title Text) </TITLE>
   </HEAD>
   <BODY (Optional BODY Attributes)>
   (Optional BODY elements)

All embedded file references must be qualified to the Web Server/400 document root by including a leading slash ("/") in the file name. Failure to do this may result in broken links.

Webulator/400 may insert some optional BODY attributes into your custom header based on your configuration settings. For example, if the session has a Background Color Value configured, but the custom header does not have a BGCOLOR attribute set, Webulator/400 will insert the proper attribute to honor the configuration value. If the custom header has a BGCOLOR attribute, Webulator/400 would use its value instead.

The following sample header places a link to a home page and a mail address for the local WebMaster.

   <HTML>
   <HEAD>
   <TITLE>Webulator/400 Demo</TITLE>
   </HEAD>
   <BODY>
   <A HREF="/home.htm">Home</A> |
   <A HREF="mailto:webmaster@xyz.com">WebMaster</A>
   <P>
Custom HTML Headers and JavaScript
If Send JavaScript is enabled, Webulator/400 automatically inserts ONLOAD="SetFocus()" into the form BODY tag. If your custom HTML header also includes a JavaScript function that must be called on the OnLoad event, you must include your function name in the BODY tag and a call to the SetFocus() function at the end of your function.

For example, suppose that you have a JavaScript function called InitForm() and you want it to be called during the OnLoad event. Your custom HTML header should look something like this:

   <HTML>
   <HEAD>
   <TITLE>Webulator/400 Demo</TITLE>
   </HEAD>
   <BODY OnLoad="InitForm()">
   <SCRIPT LANGUAGE = "JAVASCRIPT">
   <!---
    function InitForm() {
        (some JavaScript statements)
        SetFocus();
        return;
    }	
    // --->
    </SCRIPT>
Custom Plain Text Headers
If you choose to create a custom plain text header file, Webulator/400 will use the standard Webulator/400 header followed immediately by the plain text header in a "Preformatted" text section.