XULRunner 忙碌/加载指示器

发布于 2024-07-26 09:56:37 字数 339 浏览 6 评论 0原文

我有一个基于 XULRunner 的应用程序,其中我需要 (a) 使用自定义对话框请求用户输入,当用户单击“确定”时,(b) 执行请求的操作。 此操作是服务器上的异步操作,可能需要一些时间,因此我想显示一个“正在加载”对话框或某种形式的繁忙指示器。 我尝试创建一个自定义模式对话框,其中有一个带有“请稍候...”消息的标签,并在服务器回复后关闭对话框; 但当此模式对话框打开时,服务器回复似乎被阻止。 我应该以某种方式打开模式对话框,还是在某种线程中运行该操作,以便即使在模式对话框打开时也可以处理回复? 我尝试查找文档,但找不到任何有用的东西。 感谢 stackoverflow 社区的任何帮助。

在此先感谢您的帮助。

I have an XULRunner based application in which I need to (a) ask for user input using a custom dialog, and when the user clicks "OK", (b) perform the requested operation. This operation is an asynchronous operation on a server, and can take some time, so I would like to show a "loading" dialog or some form of busy indicator. I have tried to create a custom modal dialog that has a single label with "Please wait..." message, and close the dialog upon server reply; but server reply seems to be getting blocked while this modal dialog is open. Should I open the modal dialog in a certain way or run the operation in some kind of a thread so that the reply can be processed even while the modal dialog is open? I have tried to look up documentation, but couldn't find anything useful. Appreciate any help from the stackoverflow community.

Thanks in advance for your help.

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

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

发布评论

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

评论(1

匿名的好友 2024-08-02 09:56:37

此模式对话框打开时,服务器回复似乎被阻止

这是不应该发生的。

您想在什么操作系统上使用什么 XULRunner? 如何打开模式对话框? 你如何与服务器交互?

如果您生成一个可用于重现问题的简单测试用例,那就最好了。

server reply seems to be getting blocked while this modal dialog is open

This is not supposed to happen.

What XULRunner on what OS are you trying to use? How do you open a modal dialog? How do you interact with the server?

It would be best if you produced a simple testcase that can be used to reproduce the problem.

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