WebSBT
CGI, WinCGI and ISAPI Extension Components
For Delphi 1.0 & 2.0
Release 1.0
Properties
- CookieCount
- QueryCount
- FormVarCount
- FormID
- RequestMethod : GET or POST
Methods
Component Creation and Destruction
- constructor Create
- destructor Destroy;
- procedure Free;
General Component and Connection Information
- function GetVersion : String;
- procedure ShowConnectionInformation;
Server Support
- function GetServerVar (strEnvName : String) : String;
- procedure ShowBadRequest (strLogFile : String);
- function IdentifyGet (strQryIdentifier : String) : Integer;
- procedure SetServerLogData (strLogData : TStr79);
- procedure Send (strSend : String);
- procedure SendA (strSend : String);
Client Support
- procedure Redirect (strURL : String); virtual; abstract;
- procedure SendRefresh (strURL : String; intSeconds : Integer);
Client-side Cookies
- procedure SetCookies (strName, strValue : String; tdExpires : TDateTime; strPath, strDomain : String; bolSecure : Boolean);
- function IsCookieVar (strVarName : String) : Boolean;
- function GetCookieVar (strVarName : String; bolDoDecryption : Boolean) : String;
- function GetCookieVarKey (intVarNumber : Integer) : String;
- function GetCookieVarValue (intVarNumber : Integer) : String;
Basic HTML Support
- procedure LoadHTMLBodyColors (strIniFileName : String);
- procedure HTTPHeader;
- procedure HTTPCustomHeader (strContentType, strStatus, strOther : String; bolCache : Boolean);
- procedure HTMLBegin (strTitle, strAuthorEmail, strBase : String);
- procedure HTMLEnd;
- procedure BodyBegin;
- procedure CustomBodyBegin (strBackground, strText, strBgColor, strLink, strALink, strVlink : String);
- procedure BodyEnd;
- procedure Header (bytLevel : Byte; strHeader : String; bolCentered : Boolean);
- procedure Comment (strComment : String);
- procedure MailTo (strEMailAddress : String);
- procedure NewPara;
- procedure FontBegin (strSize, strColor : String);
- procedure FontEnd;
- procedure CenterOn;
- procedure CenterOff;
- procedure BoldOn;
- procedure BoldOff;
- procedure ItalicsOn;
- procedure ItalicsOff;
- procedure UnOrderedListBegin;
- procedure UnOrderedListEnd;
- procedure OrderedListBegin;
- procedure OrderedListEnd;
- procedure AddListItem (strListItem : String);
- procedure AddImage (strImageFileName : String);
- procedure AddHotImage (strImageFileName : String; strURL : String; bytBorderSize : Byte; strAltText : String);
Query Strings
- function IsQueryVar (strVarName : String) : Boolean;
- function GetQueryVar (strVarName : String) : String;
- function GetQueryVarKey (intVarNumber : Integer) : String;
- function GetQueryVarValue (intVarNumber : Integer) : String;
Form Handling - HTML
- procedure FormBegin (intFormNumber : Integer; RequestMethod : TRequestMethod; strAction : String; EncodingType : TURLEncoding);
- procedure FormEnd;
- procedure TextField (strName, strDefault : String; intSize, intMaxLen : Integer);
- procedure TextArea (strName : String; intRows, intCols : Integer; strDefault : String);
- procedure Password (strName, strDefault : String; wrdSize, intMaxLen : Integer);
- procedure HiddenField (strName, strValue : String; bolSendEncrypted : Boolean);
- procedure SubmitButton (strName, strValue : String);
- procedure ResetButton (strName, strValue : String);
- procedure ScriptButton (strName, strValue, strScript : String);
- procedure Checkbox (strName, strValue : String; bolChecked : Boolean; strLabel : String; ttjPosition : TTextJustify);
- procedure CheckBoxGroup (strGroupName : String; Values : array of String; Labels : array of String; Checked : array of boolean; ttjPosition : TTextJustify; bolLineBreak : Boolean);
- procedure RadioButton (strName, strValue, strButton : String);
- procedure RadioButtonGroup (strName, strValue : String; Buttons : array of String; bolAsList : Boolean; bolLineBreak : Boolean; intDefault : Integer);
- procedure PullDownList (strName : String; Items : array of String; intDefault : Integer);
- procedure PullDownListBegin (strName : String);
- procedure PullDownListAdd(strItem, strValue : String; bolSelected : Boolean);
- procedure PullDownListEnd;
- procedure ListBox (strName : String; Items : array of String; intDefault : Integer);
- procedure ListBoxBegin (strName : String; intItems : Integer);
- procedure ListBoxAdd(strItem, strValue : String; bolSelected : Boolean);
- procedure ListBoxEnd;
- procedure ImageButton (strName, strURL : String; ttjAlign : TTextJustify; bytBorder : Byte);
- procedure FileInput (strName, strAcceptTypes : String);
Form Handling - Form Vars
- function IsFormVar (strVarName : String) : Boolean;
- function GetFormVar (strVarName : String; bolDoDecryption : Boolean) : String;
- function GetFormVarKey (intVarNumber : Integer) : String;
- function GetFormVarValue (intVarNumber : Integer) : String;
Text File Processing
- procedure SendFile (strFileName : String);
Interfaced Functions
- function AlignStr
- function EncodingTypeStr
- function RequestMethodStr
©1996 by Stephen Genusa. All rights reserved.
Return to WebSBT table of contents