在表格提交上显示忙碌指示 [英] Show Busy Indicator on Form Submit

查看:68
本文介绍了在表格提交上显示忙碌指示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



如何在表格上显示忙碌指示提交

点击提交时的处理图标



PLZ紧急

等待积极回应



Rohini G

解决方案

< blockquote>浏览此链接

http:// stackoverflow.com/questions/13259380/activating-loading-animation-by-html-beginform-submission [ ^ ]

希望这有帮助


这是一个可能的方法:



请查看表单的onSubmit属性: http://www.htmlcodetutorial.com/forms/_FORM_onSubmit.html [ ^ ]。



请注意,这是在实际提交之前称为的Javascript代码,它定义了提交是否发生。因此,如果它返回true,则提交开始。因此,您可以在此功能中显示一些指示器。您可以只显示一些消息或启动一些Javascript动画。现在,让我们假设表单 action 属性指向当前页面的相同URL(总是一个好主意)。因此,在呈现页面时,用户将看到没有此指示符的内容。基于这个想法,您可以实现不同的效果,除了...显示加载内容的百分比;但没有理由对此感到抱歉:无论如何,这段时间几乎无法预测。



-SA


hi,
how to Show Busy Indicator on Form Submit
Process icon when clicked on submit

Plz its urgent
awaiting for an positive response

Rohini G

解决方案

Go through this link
http://stackoverflow.com/questions/13259380/activating-loading-animation-by-html-beginform-submission[^]
Hope this helps


This is one of the possible ways:

Please look at the onSubmit attribute of form: http://www.htmlcodetutorial.com/forms/_FORM_onSubmit.html[^].

Note that this is the Javascript code which is called before actual submission and it defines if the submission happens or not. So, if it returns true, submission starts. So, you can show some indicator in this function. You can just show some message or start some Javascript animation. Now, let's assume that the form action attribute points to the same URL of the current page (always a good idea). So, when the page is rendered, the user will see the content without this indicator. Based on this idea, you can implement different effect except… showing the percentage of loaded content; but there is not a reason to be sorry about it: this time is pretty much unpredictable anyway.

—SA


这篇关于在表格提交上显示忙碌指示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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