change comments to use ajax

This commit is contained in:
Hendrik
2017-01-26 12:21:01 +01:00
parent 328f0665f3
commit 91aca6baa7
5 changed files with 30 additions and 18 deletions

View File

@@ -21,9 +21,9 @@ echo("
<div class='post-comments'>
<div class="commentfield">
<form action="API/postComment.php" name="newcomment" method="post">
<input type="hidden" name="postID" value="<?= $postID ?>">
<textarea name="newcomment-content" Laat een reactie achter..."></textarea> <br>
<form id="newcommentform" action="javascript:postComment();">
<input type="hidden" id="newcomment-textarea" name="postID" value="<?= $postID ?>">
<textarea id="newcomment" name="newcomment-content" placeholder="Laat een reactie achter..."></textarea> <br>
<input type="submit" value="Reageer!">
</form>
</div>