Menu icon Foundation
How can i add comments?

Hai friends i am not able to add comments in the program code . While adding comments its syntax is displaying instead of displaying  the written comments. Please do help me to solve this problem..Thank you in advance

sincerely 

Jasmine lloyd

[Designer at cheap dissertation writing services ]

html

Hai friends i am not able to add comments in the program code . While adding comments its syntax is displaying instead of displaying  the written comments. Please do help me to solve this problem..Thank you in advance

sincerely 

Jasmine lloyd

[Designer at cheap dissertation writing services ]

Aadil khan 6 months ago

The wonderful place and good article just visit information here click this link  free robux 2018 i have agreed this website is very nice to get free robux 2018 is new version and new tools thanks for sharing it.

robertfcrocker 5 months ago

I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..
cenefutebol.com

Jindo about 1 month ago

Thanks for sharing the informative information through the article. and all the details are awesome and good in this post.

Refer: color switch  free to play!! 

 

Viaan Viaan about 1 month ago

The procedure is very simple I think. If you know the technic then it is very easy to follow. I am making so many comments every day and so I know it. Thank you so much for share this with us. Keep share more. 

the printer is not responding mac

erajfatema 28 days ago

hello u didn't mention the language that in which language do you want, but i'll share to you as i added in my bookkeeping services for small business website, you can check this as well.  the link is for your help and online display

<div class="comment-form-container">
    <form id="frm-comment">
        <div class="input-row">
            <input type="hidden" name="comment_id" id="commentId"
                placeholder="Name" /> <input class="input-field"
                type="text" name="name" id="name" placeholder="Name" />
        </div>
        <div class="input-row">
            <textarea class="input-field" type="text" name="comment"
                id="comment" placeholder="Add a Comment">  </textarea>
        </div>
        <div>
            <input type="button" class="btn-submit" id="submitButton"
                value="Publish" />
            <div id="comment-message">Comments Added Successfully!</div>
        </div>

    </form>
</div>
<div id="output"></div>
<script>
	function postReply(commentId) {
		$('#commentId').val(commentId);
		$("#name").focus();
	}

	$("#submitButton").click(function() {
		$("#comment-message").css('display', 'none');
		var str = $("#frm-comment").serialize();

		$.ajax({
			url : "comment-add.php",
			data : str,
			type : 'post',
			success : function(response) {
				var result = eval('(' + response + ')');
				if (response) {
					$("#comment-message").css('display', 'inline-block');
					$("#name").val("");
					$("#comment").val("");
					$("#commentId").val("");
					listComment();
				} else {
					alert("Failed to add comments !");
					return false;
				}
			}
		});
	});

	$(document).ready(function() {
		listComment();
	});

	function listComment() {
		$
				.post(
						"comment-list.php",
						function(data) {
							var data = JSON.parse(data);

							var comments = "";
							var replies = "";
							var item = "";
							var parent = -1;
							var results = new Array();

							var list = $("<ul class='outer-comment'>");
							var item = $("<li>").html(comments);

							for (var i = 0; (i < data.length); i++) {
								var commentId = data[i]['comment_id'];
								parent = data[i]['parent_comment_id'];

								if (parent == "0") {
									comments = "<div class='comment-row'>"
											+ "<div class='comment-info'><span class='commet-row-label'>from</span> <span class='posted-by'>"
											+ data[i]['comment_sender_name']
											+ " </span> <span class='commet-row-label'>at</span> <span class='posted-at'>"
											+ data[i]['date']
											+ "</span></div>"
											+ "<div class='comment-text'>"
											+ data[i]['comment']
											+ "</div>"
											+ "<div><a class='btn-reply' onClick='postReply("
											+ commentId + ")'>Reply</a></div>"
											+ "</div>";

									var item = $("<li>").html(comments);
									list.append(item);
									var reply_list = $('<ul>');
									item.append(reply_list);
									listReplies(commentId, data, reply_list);
								}
							}
							$("#output").html(list);
						});
	}

	function listReplies(commentId, data, list) {
		for (var i = 0; (i < data.length); i++) {
			if (commentId == data[i].parent_comment_id) {
				var comments = "<div class='comment-row'>"
						+ " <div class='comment-info'><span class='commet-row-label'>from</span> <span class='posted-by'>"
						+ data[i]['comment_sender_name']
						+ " </span> <span class='commet-row-label'>at</span> <span class='posted-at'>"
						+ data[i]['date'] + "</span></div>"
						+ "<div class='comment-text'>" + data[i]['comment']
						+ "</div>"
						+ "<div><a class='btn-reply' onClick='postReply("
						+ data[i]['comment_id'] + ")'>Reply</a></div>"
						+ "</div>";
				var item = $("<li>").html(comments);
				var reply_list = $('<ul>');
				list.append(item);
				item.append(reply_list);
				listReplies(data[i].comment_id, data, reply_list);
			}
		}
	}
</script>

marcosanchez 6 days ago

thank you so much
hide online

Broad Jos 6 days ago

Just add a comment as I added in this thread. :)

redbox tv

leslie han 6 days ago

Two full thumbs up for this magnificent article of yours. I've truly delighted in perusing this article today and I figure this may be outstanding amongst other article that I've perused yet. It would be ideal if you keep this work going ahead in a similar quality.
2 player games

chi phi chua benh sui mao ga 6 days ago

thank!

Okas Smart Home 5 days ago

Thanks for sharing the post, it is very helpful.

 

Kindly visit Okas for modifying your home

jamespeter 5 days ago

Just love mobdro app anytime.