Click here to Skip to main content
14,268,797 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to add a comment box widget to my html website. Can anyone suggest me how to do this.

Thanks.
Posted
Updated 13-Aug-18 1:27am
Page 1 of 8

Rate this:
Please Sign up or sign in to vote.

Solution 9

I agree with Afzaal. If you want to build your own "comment" box then you have to do a bit of work to accomplish that. Here's one example that I wrote awhile back that is similar the the concept of "comment box": ASP.NET MVC 5: Implementing a ShoutBox Feature Using jQuery and AJAX[^]
   
Comments
Richard Deeming 26-Jun-18 11:02am
   
Did you notice the date? December 2014.

I guess Solution 8 was spam, which has since been deleted, dragging the question back onto the "active" list.
Vincent Maverick Durano 26-Jun-18 20:20pm
   
I would not respond to this thread If i did. My apologies.
Richard Deeming 27-Jun-18 7:21am
   
No problem. You've actually added something to the discussion, which is more than a lot of "new solution to old question" posts do. :)
Rate this:
Please Sign up or sign in to vote.

Solution 1

Actually, to be friendly with you, there is no such thing as a comment box in HTML or web development. There are just a bunch of HTML elements, that you avail in your website to create a function that would work for the users, to post the comments. For example, take an example of the following form in your website, which you design as to be as much simple as it can be and the user would understand that he is supposed to write the comment in it.

<p>Post your comment below:</p>
<form method="post">
   <input type="text" name="comment" />

</form>


Adding a submit button is another topic, whether to send the comment through press enter function or not and other bla bla.

Then there comes the next thing, to post the comment. Web development and the W3.org don't have any such methodology or standard for comments. Once again it is you, trying to avail the server-side coding technique to create a function to store the data that he sent to your server in such a way that once when you will take it back out, it will be as if they were comments.

You use different technique, like database storage mediums to store the data of the user in the database to query it back.

Tip: I would recommend that if this is a public blog, or any such relative website then you would/should use the already present comment service, such as Disqus[^].
   
Comments
confusedtushar 10-Apr-18 9:07am
   
nice
Page 1 of 8
1 2 3 4 5 6 7 8

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100