如何在鼠标中显示加载状态?

发布于 2024-09-07 13:59:12 字数 238 浏览 5 评论 0原文

我使用 JSF 框架创建 jsp 页面。

如果我执行某些操作(登录),然后转到后端并执行一些过程,它将返回一些值。 在这里,整个过程将进行几次。

现在我想在鼠标中显示处理状态(等待或忙碌状态)。 这意味着在我按下登录按钮后,我想在光标中显示加载状态...

类似地,如果我这样做,页面中的任何操作,那么我需要显示加载状态...也就是说,我的应用程序中的每个操作,显示加载状态。

帮我。 感谢您的努力。

I create jsp page using JSF Framework.

If i perform some action(Login), then go to the backend and perform some process and it will return some value.
Here this whole process will be taken some times.

Now that time i want to show processing status (wait or busy status) in Mouse.
That means after i press Login button , i want to show that loading status in cursor...

Similarly, If i do, any action in page, then i need to show the loading status...That is, every action in my application, show the loading status.

Help me.
Thanks for your effort.

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

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

发布评论

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

评论(1

清君侧 2024-09-14 13:59:12

如果您要提交表单,您可以使用...

<form onsubmit="document.body.style.cursor='wait'"></form>

这里是允许的列表使用 CSS 的光标。
您始终可以通过 JavaScript 设置页面或页面上组件的光标。

If you are submitting a form you could use...

<form onsubmit="document.body.style.cursor='wait'"></form>

Here is a list of allowable cursors with CSS.
You could always set the cursor for either the page or for a component on the page via JavaScript.

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