Previous: Filters| Zot-Dispatch 2.0| Next: Default Values

ZD-Comments


One application of Zot-Dispatch is ZD-Comments. ZD-Comments eliminates the need to create separate comment forms for each document you have in your Web structure by creating them on the fly.

Using Zot-Dispatch's template substitution, ZD-Comments substitutes the name of the document being commented on, the URL of that document, the address to which the comments should be sent, and other document identification information into a comment form template which is then returned to the users client to be filled out and sent.

As an example, including the following in a document will create a button which, when pressed, would create a comment form on the fly:

<FORM METHOD=POST ACTION="http://www.oac.uci.edu/cgi-bin/zd-2.0.cgi">
<INPUT TYPE=hidden NAME=DOC-URL 
        VALUE="">
<INPUT TYPE=hidden NAME=DOC-ID
        VALUE="">
<INPUT TYPE=hidden NAME=DOC-TITLE
        VALUE="">
<INPUT TYPE=hidden NAME=SEND-TO
        VALUE="">
<INPUT TYPE=hidden NAME=ZD-Method
        VALUE="ZD-Reflect;;file:/X/W6/zd/2.0/ZD-2.0-Comment.Temp">
<INPUT TYPE=submit NAME=submit VALUE="Send Comments">
</FORM>
The four hidden elements are:
DOC-URL
This hidden variable should contain the URL of the document being commented on. This value should not (but can) be left empty.
DOC-ID
This hidden variable should contain any other information you may find useful in identifying the document, such as revision number, date of publication, etc. This value can be left empty.
DOC-TITLE
This hidden variable should contain the title of the document that is being commented on. This can be the same as the title you have in the <TITLE></TITLE> tags.This value should not (but can) be left empty.
SEND-TO
This hidden variable should contain the e-mail address to which the user's comments will be sent. This value cannot be left blank and should be a valid Internet address.
For each document that ZD-Comments is used within, the appropriate values for that document should be used in the four hidden elements.
In order to use ZD-Comments on your system you need to have Zot-Dispatch installed, and you need to have a copy of the ZD-Comment template form on your system. Then replace the file location in the ZD-Method hidden element above so that it accesses your own copy and change the URL in the template so that it accesses your copy of Zot-Dispatch.
Previous: Filters| Zot-Dispatch 2.0| Next: Default Values
Zot-Dispatch 2.0
Written by Leonard Megliola III (lmegliol@uci.edu)
Last Revised 02 January 1996