如何在html网站上添加评论框 [英] How to add comment box to a html website

查看:2139
本文介绍了如何在html网站上添加评论框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的html网站上添加一个评论框小部件。任何人都可以建议我怎么做。



谢谢。

I want to add a comment box widget to my html website. Can anyone suggest me how to do this.

Thanks.

推荐答案

我同意Afzaal。如果你想建立自己的评论框,那么你必须做一些工作来完成它。这是我写回来的一个例子,类似于评论框的概念: ASP.NET MVC 5:使用jQuery和AJAX实现ShoutBox功能 [ ^ ]
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[^]


实际上,为了和你友好,没有例如HTML或Web开发中的评论框。您可以在网站中使用一些HTML元素来创建一个适合用户的功能,发布评论。例如,在您的网站中举例说明以下表单,您可以将其设计为尽可能简单,并且用户会理解他应该在其中编写注释。



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>





添加提交按钮是另一个主题,是否通过按下输入功能发送评论和其他bla bla。



然后接下来发表评论。 Web开发和W3.org没有任何此类方法或评论标准。再一次是你,试图利用服务器端编码技术来创建一个函数来存储他发送到你服务器的数据,这样一旦你将它取回,它就好像它们是评论。



您使用不同的技术,如数据库存储介质,将用户的数据存储在数据库中以进行查询。



提示:我建议如果这是一个公共博客或任何此类相关网站,那么您将/应该使用已经存在的评论服务,例如 Disqus [ ^ ]。


<p>Post your comment below:</p>
<form method="post" action="#">

<textarea id="txtcomment"  rows ="20" name="comment"></textarea>

</form>


这篇关于如何在html网站上添加评论框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆