Jahova
20-12-2008, 01:47 PM
Hey there I am using cutenews for my site but I have a problem. When I try to comment on an full story article, and hit the submit button, it just refreshes the whole page and doesn't post the comment.
Does anyone know how to make it so that it just refreshes the div with the AJAX script and also post the comment. Thanks.
Sources I use:
For my AJAX page loading script, I use: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
The cutenews comments form PHP is:
<table border="0" width="370" cellspacing="0" cellpadding="0">
<tr>
<td width="60">Name:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" name="mail"> (optional)</td>
</tr>
<tr>
<td>Smile:</td>
<td>{smilies}</td>
</tr>
<tr>
<td colspan="2">
<textarea cols="40" rows="6" id=commentsbox name="comments"></textarea><br />
<input type="submit" name="submit" value="Add My Comment">
<input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
<a href="javascript:CNforget();">Forget Me</a>
</td>
</tr>
</table>
I'm not sure if I'll have to edit that or edit some source in the cutenews files: http://cutephp.com/
Does anyone know how to make it so that it just refreshes the div with the AJAX script and also post the comment. Thanks.
Sources I use:
For my AJAX page loading script, I use: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm
The cutenews comments form PHP is:
<table border="0" width="370" cellspacing="0" cellpadding="0">
<tr>
<td width="60">Name:</td>
<td><input type="text" name="name"></td>
</tr>
<tr>
<td>E-mail:</td>
<td><input type="text" name="mail"> (optional)</td>
</tr>
<tr>
<td>Smile:</td>
<td>{smilies}</td>
</tr>
<tr>
<td colspan="2">
<textarea cols="40" rows="6" id=commentsbox name="comments"></textarea><br />
<input type="submit" name="submit" value="Add My Comment">
<input type=checkbox name=CNremember id=CNremember value=1><label for=CNremember> Remember Me</label> |
<a href="javascript:CNforget();">Forget Me</a>
</td>
</tr>
</table>
I'm not sure if I'll have to edit that or edit some source in the cutenews files: http://cutephp.com/