结合 AJAX 和常规基于 POST 的表单保存时的可用性标准
我正在开发一个项目,在某些页面(例如设置页面)上,我们结合了 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为javascript是最适合使用的。您可以使用
onBlur
和onChange
方法来监视用户活动,还可以添加带有提醒消息的漂亮工具提示。或者,您可以更积极地创建一个函数,检查所有字段何时已填写,然后打开一个确认窗口,其中显示一条消息:“您想提交您的详细信息吗?”。如果为 true,请使用 Submit() 方法,仅此而已。
I think javascript would the the most suitable to use. You can use the
onBlur
and theonChange
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.