How To Guide - Scripting

BlueZone Web-to-Host

How to Configure BlueZone for Active Server Page (ASP) Integration

ASP Integration: Click here to learn more about this feature

The standard HTML web pages that ship with BlueZone Web-to-Host can be modified to work with an ASP application.  For example, you can add a PARAM NAME / VALUE Pair for Username and Password to the Object Tag.  However, an Object Tag with a specific Username and Password would not be very useful.  By using an ASP script, you could create a form that would capture the End User's Username and Password.  By making the Username and Password values in the Object Tag variables, you could have the form pass the appropriate values into the Object Tag "on the fly" so to speak.

Configuration Method: Manual Configuration

Feature Scope: Launch Folder Level Feature


This is what the HTML Object Tag looks like when it is part of an ASP script on the web server.  Note that there are two variables for the PARAM NAME Var1 and for Var2 shown in red.

%>
<OBJECT ID="Seagull Web-to-Host Control Module v3"CLASSID="clsid:037790A6-1576-11D6-903D-00105AABADD3"
CODEBASE="../sglw2hcm.ocx#Version=-1,-1,-1,-1" HEIGHT=0 WIDTH=0>
<PARAM NAME="IniFile" VALUE="default.ini">
<PARAM NAME="Sessions" VALUE="MD_S1">
<PARAM NAME="MD_DistFile" VALUE="display.e3d">
<PARAM NAME="MD_S1" VALUE="mfdisp1.zmd">
<PARAM NAME="MD_S1_Save" VALUE="Yes">
<PARAM NAME="MD_S1_Var1" VALUE="<%= Username%>">
<PARAM NAME="MD_S1_Var2" VALUE="<%= Password%>
%>

The ASP script then substitutes the values for Username and Password from the form for the variable values <%= Username%> and <%= Password%> in the Object Tag.

This is what the HTML Object Tag looks like after the ASP script has finished substituting the Username and Password variables from the HTML form.  This resultant code is what gets sent to the End User’s browser:

<OBJECT ID="Seagull Web-to-Host Control Module v3"CLASSID="clsid:037790A6-1576-11D6-903D-00105AABADD3"
CODEBASE="../sglw2hcm.ocx#Version=-1,-1,-1,-1" HEIGHT=0 WIDTH=0>
<PARAM NAME="IniFile" VALUE="default.ini">
<PARAM NAME="Sessions" VALUE="MD_S1">
<PARAM NAME="MD_DistFile" VALUE="display.e3d">
<PARAM NAME="MD_S1" VALUE="mfdisp1.zmd">
<PARAM NAME="MD_S1_Save" VALUE="Yes">
<PARAM NAME="MD_S1_Var1" VALUE="JDoe">
<PARAM NAME="MD_S1_Var2" VALUE="MyPassword">

Tying The Results Into BlueZone

When using the BlueZone Script Variable Feature, the BlueZone script will read in the Param Name / Value Pair for Var1 and Var2, and it will substitute JDoe and MyPassword for the values of Var1 and Var2 in the BlueZone Script.

SEE  How To Use Object Tag Parameters to Insert Variables Into a Script for more information.