客户端错误报告工具

发布于 2024-11-15 15:40:20 字数 465 浏览 7 评论 0 原文

这将是一个有趣的项目。

我们的团队正在开发一个项目,php+jquery+postgres。我们想要一些可以报告错误的好东西。行为如下:

  1. 在任何页面上,某人(主要是管理员)可以单击某个按钮,页面就会变成“错误报告”模式。
  2. 当用户移动鼠标时,任何 html 元素都会突出显示(例如,内部红色实线边框)。
  3. 当用户单击该元素时,会弹出一个浮动 div(至少带有一个文本框和一个提交按钮),用户输入一些评论(例如,请将标题更正为“正确的标题”)
  4. 。用户点击“提交”,将生成一个 ajax 请求(带有页面 url、一些自定义请求参数以及评论 + 目标元素)并将其发送到服务器。

好吧,我想这可能是用 javascript 完成的,所以我的问题是,是否有任何 javascript lib(jQuery 插件是最好的)可以像这样工作?我在网上做了一些搜索,但没有运气..

提前致谢!

This would be an interesting one..

Our team's working on a project, php+jquery+postgres. We would like something good for reporting bugs. Here is the behaviours:

  1. At any page, some one (mostly admin) can click some button, and the page turn into "bug-reporting" mode.
  2. When the user move around the mouse, any html element will be highlighted (e.g, an inner, red, solid border).
  3. When the user click the element, a floating div (at least with a text box and a submit button) pop up and the user enter some comment (e.g., please correct the title to "a right title")
  4. After typing the comment, the user hit 'submit', and an ajax request (with, page url, some custom request param, and the comment + the target element) will be generated and sent to the server.

Well, I guess this could be something done in javascript, so my question is, is there any javascript lib (jQuery plugin would be the best) acts like this? I have done some search online, but with no luck..

Thanks in advance !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

自由范儿 2024-11-22 15:40:20

我怀疑是否有任何插件可以为您完成大部分工作,但肯定有很多插件对您很有帮助。

其中一个几乎肯定是 jQuery UI,因为它可能会在调整元素大小、移动元素等方面派上用场。

我的建议是仔细考虑您希望插件执行的操作并以这种方式搜索它。

例如,我搜索“用于编辑元素中文本的 jquery 插件”,第一个结果是一个名为 Jeditable 的插件,看起来非常有前途:http://www.appelsiini.net/projects/jeditable

链接到 jQuery UIhttp://jqueryui.com/home

I doubt that there is anything that will do the majority of it for you but there are definitely many plugins that you will find helpful along the way.

One will almost definitely be jQuery UI because it might come in handy to resize elements, move them, etc.

My advice would be to think about exactly what you want the plugin to do and search for it that way.

For example, I searched "jquery plugin to edit text in element" and one of the first results was a plugin named Jeditable that looks very promising: http://www.appelsiini.net/projects/jeditable

Link to jQuery UI: http://jqueryui.com/home

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文