Getting Started
with WebSpeed


Creating an Application Header

You are going to use the Blank template to create the Corporate logo Web object. The Blank template creates a simple HTML file with HTML script tags to hold your SpeedScript code.

Follow these steps to create the Corporate logo Web object:

  1. From the AppBuilder main window, choose File New.
  2. The New dialog box appears.

  3. Select Blank to create a new file from the Blank template, and choose OK.
  4. A new, untitled file opens in a Procedure Window.

  5. Use the Procedure Window scroll bar to scroll through the contents of the Blank template.
  6. Notice that the template contains standard HTML tags. You can add any standard HTML formatting tags you want. For the Corporate logo Web object you add HTML tags for the background and text colors, logo image, and application title.

    Between the embedded scripting language tags, <script language = “SpeedScript”> and </script>, you add SpeedScript code to define variables to hold the date and time. Outside the script tags, you use backquote escape characters (‘ ‘) to set off the values of each variable.

  7. In the Procedure Window, modify the template by adding the text shown in bold:
  8. <body bgcolor=“white” text=“00008080">              
    <script language=“SpeedScript”>   
    /*-----------------------------------------------------------------
    File:
    Description:        
    Created:
    ------------------------------------------------------------------*/
    DEFINE VARIABLE vdate AS DATE. 
    DEFINE VARIABLE vtime AS CHARACTER.
    ASSIGN vdate = TODAY.       
    ASSIGN vtime = STRING(TIME,"HH:MM").   
    </script> 
    <img src="/webspeed31d/samples/intranet/corplogo.gif">
    <font color="FF0000" size="6" face="Arial"> 
    <strong>Sales Advisor</strong><br> 
    <p align="center"><font size="3"><strong>Today’s Date: ‘vdate‘ Time: 
    ‘vtime‘</font></p> 
    </body> 
    

    NOTE: When you specify an image like corplogo.gif in this example, you must specify a path relative to your documentation root directory. The WebSpeed installation creates a directory called /webspeedversion (where version is the version number of the WebSpeed product) under your documentation root directory. Various graphics and other static files are installed there.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095