XULRunner 忙碌/加载指示器
我有一个基于 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是不应该发生的。
您想在什么操作系统上使用什么 XULRunner? 如何打开模式对话框? 你如何与服务器交互?
如果您生成一个可用于重现问题的简单测试用例,那就最好了。
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.