如何阻止zk处理上的用户操作?

如何阻止zk处理上的用户操作?,zk,Zk,我正在使用ZK7.0.3 我的应用程序上有一些长进程,我想在长进程启动时阻止用户操作。我尝试使用此选项,但不起作用: <device-config> <!-- Configure the progress message to show in the center --> <device-type>ajax</device-type> <embed><![CDATA[ <script type

我正在使用ZK7.0.3

我的应用程序上有一些长进程,我想在长进程启动时阻止用户操作。我尝试使用此选项,但不起作用:

<device-config>
    <!-- Configure the progress message to show in the center -->
    <device-type>ajax</device-type>
    <embed><![CDATA[
    <script type="text/javascript">
        AU_progressbar = function (id, msg) 
        {
            Boot_progressbox(id, msg, 0, 0, true, true);
        };
    </script>
]]></embed>
</device-config>

阿贾克斯
AU_progressbar=函数(id,msg)
{
Boot_progressbox(id,msg,0,0,true,true);
};
]]>

您可以参考本指南-

比如说,,

Clients.showBusy(“执行…”)//向用户显示忙消息

在项目中创建一个类似MyFile.JS的JS文件,并在该JS中添加以下代码

zk.procDelay = 100;
if (!zUtl.oldProgressbox) {
 zUtl.oldProgressbox = zUtl.progressbox;
 zUtl.progressbox = function(id, msg, mask, icon, _opts) {
  if(getCookie("language")=="fr_ca") {
   zUtl.oldProgressbox(id, "Traitement de votre demande, s'il vous plaît patienter ...", true, icon, _opts);
  } else {
   zUtl.oldProgressbox(id, 'You can add any text here...', true, icon, _opts);
  }
 }
}
将这个
{fileName}.js
添加到
lang addon.xml
文件中,如下所示

<javascript src="/resource/js/fileName.js" />