Platform SDK: CDO 1.2.1 |
This sample contains two sets of files. The first set, in the folder NewClassifiedAd, stores the ASP files necessary to create and view a classified ad form. The second set, in the folder Purchoffr, stores the files needed to create and view purchase offers and responses.
The root folder holds the include files needed by both samples and the base code for the discussion application. Also see the section on the Discussion Forum sample application for descriptions of some of these files:
Root Folder (Discussion) Files
File | Purpose |
---|---|
amprops.inc | Definitions of common CDO constants and properties. |
default.htm | Takes the user to root.asp. |
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 shows how to link to the discussion/classified ad scripts and how to set them to open a specific folder or message. |
folder.asp | Folder.asp calls functions in folder.inc to set the renderer and render views of folders. It displays a page of messages (25 lines at a time). The format depends on the view selected. |
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. Folder.inc contains functions for generating a renderer. |
getrend.inc | Contains functions for opening information stores and messages. |
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. |
root.asp | Logs you onto the Microsoft Exchange site. Creates a frameset and launches existing.htm, folder.inc, and discroot.asp. |
title.asp | This is a control bar containing JavaScript controls for setting views, refreshing the screen, paging through messages, and launching \newclassad\compose.asp to write a new ad. |
NewClassifiedAd Files
File | Purpose |
---|---|
rootcomp.asp | Used for rendering the frameset of the new classified ad. This page also holds several JavaScript functions that validate data in compose.asp before allowing resolve.asp to send the custom message or form. |
compose.asp | Displays an input form that the client uses to place an ad to buy or to sell items. Data is passed to resolve.asp after it has been verified by rootcomp.asp |
resolve.asp | Retrieves the data entered by the client in compose.asp and attempts to send mail to the public folder called Classified Ads. |
category.asp and subcat.asp | Used to display the many categories and subcategories of items to be sold or purchased. |
read.asp | Displays the contents of a previously generated classified ad and lets users create responses known as purchase offers. |
amprops.inc | Sets constants. |
Purchoffr Files
File | Purpose |
---|---|
rootcomp.asp | Used for rendering the frameset of the purchase offer. This page also holds several JavaScript functions that validate data in compose.asp before allowing resolve.asp to send the custom message or form. |
compose.asp | Displays an input form that the client uses to respond to an ad to buy or sell items. Data is passed to resolve.asp after it has been verified by rootcomp.asp. This form is not posted to the Classified Ad folder; rather, it is sent to the creator of the classified ad. |
resolve.asp | Retrieves the data entered by the client in compose.asp and attempts to send mail to the individual who initially posted the classified ad. |
read.asp | Displays the purchase offer generated by another user. Viewers of this form can respond to the offer using the standard reply note. |
amprops.inc | Sets constants. |