Mercurial > hg > chronicle
diff themes/blog.steve.org.uk/comment-form.inc @ 150:4a882ba147e4
Updated to allow Ajax to be used for comment submission.
author | Steve Kemp <steve@steve.org.uk> |
---|---|
date | Mon, 31 Dec 2007 00:01:51 +0000 |
parents | 1ae476191bec |
children | 4d2f0d6866e5 |
line wrap: on
line diff
--- a/themes/blog.steve.org.uk/comment-form.inc Sun Dec 30 01:37:27 2007 +0000 +++ b/themes/blog.steve.org.uk/comment-form.inc Mon Dec 31 00:01:51 2007 +0000 @@ -1,6 +1,7 @@ <!-- tmpl_if name='comments_enabled' --> <h3>Add A Comment</h3> <blockquote> +<div id="output"> <form action="/cgi-bin/comments.cgi" method="post"> <input type="hidden" name="id" value="<!-- tmpl_var name='link' escape='html' -->"> <input type="hidden" name="captcha" value=""> @@ -12,9 +13,10 @@ <tr><td colspan="2">Your Comment<br /> <textarea name="body" rows="10" cols="60"> </textarea></td></tr> -<tr><td></td><td align="right"><input type="submit" name="submit" value="Post Comment"></td></tr> +<tr><td></td><td align="right"><input type="submit" name="submit" value="Post Comment" onClick="submitAjax(); return false;"></td></tr> </table> </form> <p>Your submission will be ignored if any field is left blank. But your email address will not be displayed.</p> +</div> </blockquote> <!-- /tmpl_if -->