Anonymous Comments
MvcCms allows anonymous comments on pages if desired.
Comments are done entirely with Ajax and page loads are not required to post or refresh comments. Some sample code:
1: function CreateComment() {
2: var data = { AddedByAnonName: $('#AddedByAnonName').val(), AddedByAnonEmail: $('#AddedByAnonEmail').val(), Body: $('#body').val() }
3:
4: var encoded = JSON.stringify(data);
5:
6: $.post(
7: "/homeAjax/CreateContentComment",
8: { data: encoded, pageId: <%=Model.contpage.ContentPageID %> },
9: function (data) {
10: if (data.error){
11: alert(data.error);
12: }
13: else{
14: PopulateComment(data);
15: }
16: },
17: "json"
18: );
19:
20: }
Below is how this is configured.
|
Comments
(gravatar only)
|
Edit Comment
Please wait...

Reply To Comment
Please wait...

