fnDebug() fnDisplay(...) SYNTAX fnDisplay(FirstFile, [sVariableType]) DESCRIPTION This function is a close parallel to the fnDebug function, but instead of terminating all HTML output with response.end it allows other content to appear on a page. It can be used to display a string, a set of Form Contents, a set of Query-String contents the contents of a File or two, an ActiveX Data Objects recordset, and possibly more than that fnDbugFileContents, fnDbugRecordset, fnDbugString, dbug, fnDbugFormContents, 'fnDbugQueryString' into one function EXAMPLE UNTESTED CODE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> '--<--<--<--<--<--<--<--<--< %> RESULTS [partial] [continued] PARAMETERS ooDebugObject {string, recordset, array..., Required} [sDebugType] {string, default="string"} This parameter specifies the type of object which is to be debugged: RECOGNISED VALUES, "string" The string is displayed on the Web page with whitespace encoded in HTML "recordset" The adoRecordset is displayed in a table format on the web page with Field names as column headings "form" The contents of the HTML form is displayed in a table format on the web page "query" The contents of the HTML query-string is displayed on the web page "array" The elements of the array (one or two dimensional) are displayed on the web page STATUS TO DO, its a big job, lots of compilation LAST MODIFIED 20 may 2000 PROGRAMMER Matthew Bishop Email: matth3wbishop@yahoo.com DEPENDENCIES fnErrorMessage [fnErrorMessage.asp] etc LOCATION http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ LANGUAGE Microsoft Jscript COMMENTS: SEE ALSO fnDebug, fnDisplayFileContents, fnDisplayRecordset, fnDisplayRecord these functions were precursors to the general function (which has not been written yet) Additional Example <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnDisplay("c:\boot.ini") '--<--<--<--<--<--<--<--<--< %> RESULTS The contents of both files are displayed on the web page side by side and 'white space' characters are displayed as codes Additional Example <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnDisplay("c:\boot.ini") '--<--<--<--<--<--<--<--<--< %> RESULTS Additional Example <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnDisplay("all", "query") '--<--<--<--<--<--<--<--<--< %> RESULTS The set of query-string elements is displayed on a web page Additional Example 2