Click to See Complete Forum and Search --> : how to create a wiki


achanak
12-11-2003, 03:49 AM
Hi

I wanted to create a simple webpage which has some plain text at the top and a form at the bottom. Any visitor to the website should be able to write anything in the form and on submission, the text written in the form should be added BELOW the original text.

The initial page would like this:

Text text text text text
Text text text text text
Text text text text text
---------
FORM

--------
Submit Button

After somebosy writes something in the form and submits, it would like :

Text text text text text
Text text text text text
Text text text text text
-------
new text new text new text
new text new text new text

---------
FORM

--------
Submit Button

Basically, I am trying to create the wiki functionality in Javascript. Can it be done? if so, how?

Thanks in advance

Achanak

fredmv
12-11-2003, 04:04 AM
Sorry, cannot be done using JavaScript (or any other client-side scripting language for that matter) primarily because JavaScript can't write files on the server. You'll need a server-side language to do this. One of the more popular Wikis out there is the MoinMoin Wiki (http://moin.sourceforge.net/) which is written in Python (http://www.python.org/). There are others out there, but this one seems to be quite powerful, easily configurable, and widely used.