It’s a very, very simple chat application using
XmlHttpRequest to communicate in an AJAX style with an ASP 3.0 server that processes JSON-RPC-like requests and manages a simple shared database.
* chat-server/simple-chat.asp: Contains the server-side code responsible for responding to the client’s RPC requests for chat-server functionality. Does not itself present any HTML at all: it only speaks AJAJ, accepting JSON requests and replying with JSON responses.
* js/ajaj.js: Implements the client side of the AJAJ
RPC library, building upon json.js.
* chat-server/ajaj.asp: Implements the server side of the AJAJ RPC library, building also upon json.js (in the form of json.asp). The only part of this file not authored by LShift is the contained VBScript function BinaryToString, which was written by Antonin Foller and comes from http://www.pstruh.cz.
* chat-server/jsondb.asp: A simple (toy) transactional database driver for ASP 3.0 using the filesystem as a data store.
The following files are mostly library code from third parties:
* js/json.js, chat-server/json.asp: Almost identical files – the only difference between them is that the .asp file contains the necessary boilerplate punctuation required to fit it into an ASP 3.0 environment. Both implement JSON serialization/deserialization. The only change made to the standard json.js distribution is LShift’s addition of the “@constructor …” syntax.