AjaxCom provides your pages with one line comment box.
You and your visiters can write comments in your static page! You know, ajax is used here.
CMS is not required. PHP is not required. Ajaxcom is pluggable and easy to use.
Perl/CGI works only when comments are entered.
A plain text file is loaded when comments are displayed.
Download package: ajaxcom-20060919.zip ZIP
Perl (5.005 or above) is required on server side.
Expand the ZIPed file and change permition of ajaxcom.cgi and ajaxcom-data.
com/ajaxcom.cgi permition 755 (rwxr-xr-x) com/ajaxcom.css com/ajaxcom.js com/ajaxcom-lang-ja.js com/cgi-lib/ajaxcom-main.pl com/cgi-lib/KCatch.pm com/cgi-lib/misclib.pl com/cgi-lib/XML/TreePP.pm com/cgi-lib/XML/FeedPP.pm com/ajaxcom-data/ permition 777 (rwxrwxrwx)
/service/com/ directory is used to install it in this site.
You have to edit
before using it.
AjaxCom.prototype.url_receive = '/service/com/ajaxcom-data'; AjaxCom.prototype.url_post = '/service/com/ajaxcom.cgi';
And edit ajaxcom-main.pl as well.
my $URL_ROOT = "http://domain.name"; my $DOC_ROOT = "/home/htdocs/domain.name";
$URL_ROOT is your website's top page URL. (don't include its last "/" slash)
$DOC_ROOT is DocumentRoot's path on your server.
And insert the following lines into your web pages.
<link rel="stylesheet" type="text/css" href="http://domain.name/service/com/ajaxcom.css"> <script src="http://domain.name/service/com/ajaxcom.js"></script> <div id="ajaxcom_here"></div> <script>(new AjaxCom("ajaxcom_here")).load();</script>
Comments' log files are
generated in ajaxcom-data directory
as UTF-8 encoded and tab separated.
|#2||Process ID||72140||not used (just for uniqueness)|
|#3||IP address||84682||Hash value of remote IP address|
|#5||Content||Hello World!||Comments entered|
Administrators' mode is not provided yet.
Just use vi command to delete some comments scribbled.
This page's log file is
A RSS file is also generated when a comment is entered: ajaxcom-data/recent.xml
Or RSS mode is available to get same RSS data: ajaxcom.cgi?__mode=rss
Trackback URL:http://www.kawa.net/service/tb/ajaxtb.cgi/works/ajax/ajaxcom/ajaxcom-e.htmlKawa.netxp © Copyright 2006 Yusuke Kawasaki