Hi,
The Jot snippet has good potential to add ajax features to it. I added
&ajax [1|0] parameter as a new parameter to this snippet. Now by this version user can
submit comment use all parts by ajax.
I have not changed the main codes, i've just added a javascript file to jot/templates directory and about 20 lines to main class of Jot snippet.
For ajax commenting,
You must put your Jot call in a container which has
id attribute and DO NOT put your Jot FORM in any container! or give a container to snippet for printing data, see jot/ajax_config.html.
If
&placeholders is on, ajax Jot only updates placeholders below:
[+jot.html.form+]
[+jot.html.comments+]
[+jot.html.moderate+]
[+jot.html.navigation+]
[+jot.html.subscribe+]
for getting output, you must put each placeholder in a container that has
id attribute and get IDs to Jot, for do that see jot/ajax_config.html.
You can also create a dynamic form tpl that sets a ajax form with necessary data when
&ajax=`1` and sets a non-ajax form when
&ajax=`0` by PHx, see jot/ajax_config.html and jot/templates/chunk.form.inc.html.
Note: There is an javascript error when using ajax commenting in Internet Explorer 6 and unfortunately i can't find it. So ajax commenting does not work in IE6

but it works well in browsers i've tested: Firefox3, Opera9.52, Chrome0.2.149.27 (Chrome uses Apple webkit processors so probably Safari output is same as Chrome)
But in current version if you use IE6, &ajax will be disabled!
Thanks
AHHP