English 中文(简体)
Sencha 触及应用面具
原标题:Sencha touch application loading mask

我有sen感人的申请,但希望在网页装满时对整个面具使用装具面罩。 (一) 报关档案等装货

在ExtJS,我曾用全尺寸的碎块,带有装货图像,然后作为“onReady”我第一次采取行动,然后拆除了。 遗憾的是,在Sencha Touch似乎有缺陷。

我的定义如下:

Ext.application({
    name:  MyApp ,

    launch: function() {
        Ext.create( Ext.Panel , {
            fullscreen: true,
            html:  Hello World 
        });
    }
});

任何点人都将得到评估。

最佳回答

你可以使用Ext.Load Mask等。 例如:

var myMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
myMask.show();

在你完成一些阿贾克斯要求或完成你的任务并去除面罩时,你可以:

myMask.hide();
问题回答

您也可以在提出雅氏请求和装货数据时尝试以下代码。

var mask = new Ext.LoadMask(Ext.getBody(), {msg:"wait msg..."});                


                Ext.Ajax.on( beforerequest , function(){        

                        mask.show();
                });


                Ext.Ajax.on( requestcomplete , function(){      

                        mask.hide();
                });             


                Ext.Ajax.on( requestexception , function(){         

                });

Here is how I go about it:

Ext.getBody().mask().addCls( black-background );

.black-background {
  opacity: 1;
  background: black;
}




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签