This sample application includes the following files:
File | Purpose |
---|---|
amprops.inc | Defines common CDO constants and properties. |
anlogon.inc | Contains all of the Microsoft® Visual Basic® Scripting Edition (VBScript) code necessary to log on anonymously (create and check a CDO session), and find any published public folders. |
compose.asp | When the user clicks Post New Item or Reply, compose.asp displays a form (a new browser instance) to write a message in and then creates the message in the discussion folder. If the user is replying to a message, the form fields are preloaded with data from the original message. |
discroot.asp | The root frame for the discussion. Called from root.htm, this file calls title.asp and folder.asp to display the discussion content. This file also contains several JavaScript functions called by the browser on events in title.asp and folder.asp. |
existing.htm | This is a placeholder for your existing Web site. It is displayed at the top of your browser window. It contains links to two discussions. |
folder.asp | Folder.asp calls functions in folder.inc to set the renderer and to render views of folders. It displays a page of messages (25 lines at a time). The format depends on the view selected. Each message provides a link to read.asp to allow that message to be read. |
folder.inc | This include file contains most of the code specific to the CDO Rendering Library. Rendering objects are created and set up here; folder views, current folder, and the current page are set here. The folder.inc file contains functions for generating a renderer. |
global.asa | Performs Active Server startup and shutdown functions, including impersonation to validate the user. |
item.asp | This script processes next/previous message requests. |
lang.inc | Sets strings and error messages. Concentrating these in a single include file eases localization. |
read.asp | This script opens and displays the contents of a message (in a new browser instance) when you click a link to open the message. It contains controls for closing the message, going to the next or previous message, and replying to the message. |
root.htm | This is a placeholder for your existing Web site. It shows how to link to discussion scripts and how to set them to open a specific folder. This file simulates existing content (discussion threads), and it creates a frameset for the menu (existing.htm) and diskroot.asp. |
title.asp | This is a control bar containing JavaScript controls for setting the view, refreshing the screen, paging through messages, and launching compose.asp (through a link). |