结合 AJAX 和常规基于 POST 的表单保存时的可用性标准

发布于 2024-08-15 02:22:43 字数 239 浏览 2 评论 0原文

我正在开发一个项目,在某些页面(例如设置页面)上,我们结合了 AJAX 和常规的填写表单然后提交基于 POST 的操作。我很好奇是否有人对提高此类页面的可用性有建议。我的想法之一是,当用户在页面的非 ajax 部分输入/修改值时,会出现某种 div(以类似于 Growl 的方式),指示用户需要通过按“提交”来保存' 在页面底部(如果用户在保存之前导航离开页面,则可能会显示一个模式对话框,尽管这可能有点过于侵入性)。我确信这种类型的交互存在,但我找不到任何例子。

I'm working on a project where on certain pages (e.g. settings pages) we combine AJAX and regular fill-out-the-form-then-submit POST based operations. I'm curious if anyone has advice on improving the usability of such a page. One of my ideas is that when the user enters/modifies a value in a non-ajax part of the page, some sort of div would appear (say in a fashion similar to Growl) indicating that the user needs to save by pressing 'Submit' at the bottom of the page (and possibly putting up a modal dialog if the user navigates away from the page before saving, though that might be a bit too intrusive). I'm sure this type of interaction exists, but I can't find any examples.

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

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

发布评论

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

评论(1

太傻旳人生 2024-08-22 02:22:43

我认为javascript是最适合使用的。您可以使用 onBluronChange 方法来监视用户活动,还可以添加带有提醒消息的漂亮工具提示。

或者,您可以更积极地创建一个函数,检查所有字段何时已填写,然后打开一个确认窗口,其中显示一条消息:“您想提交您的详细信息吗?”。如果为 true,请使用 Submit() 方法,仅此而已。

I think javascript would the the most suitable to use. You can use the onBlur and the onChange methods to monitor user activity and you may also add a nice tooltip with a reminder message.

Or you could be more pushy by creating a function that checks when all the fields have been filled then bring up a confirm window with a message, "Would you like like to submit your details?". If true use the submit() method and thats it.

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