Finally I found an acceptable solution (at least it would works for me):
It's not a chat, but a kind of Messageboard:
1. Created an upload enabled folder for textmessages eg Messages.
2. This folder has a different template
3. In this template the *.txt files are displayed by <iframe> (No javascript needed)
4. In order to reply, a input box for the upload of an textfile has been added
5. In order to add a new message, the visitor has to create an textfile with eg. Notepad(++) and upload.
(This is the ugly part of the solution, but acceptable imho)
I've attached the modified and commented default template to demonstrate the principle. No optimisation has been done.
Source:
http://www.htmlcodetutorial.com/frames/frames.html BTW, all filetypes can be uploaded and displayed as iframes, not only txt, but this wouldn't make sense. Set menuoption to number files instead of overwriting, in case visitors try to upload the same filename again.
Comments for improvement are welcome.
[attachment deleted by admin]