PDA

View Full Version : Ext.Element.unmask() does not work



695w
29 Oct 2009, 4:38 PM
HTML:
<from id="fm" >
<!-- input fields-->
</from>
JS:
Ext.get('fm').mask("msg..","x-mask-loading");
Ext.ajax.request({
url:Ext.getDom('fm').action,
form:Ext.getDom('fm'),
isUpload:true,
success:function(response){
Ext.get('fm').unmask();
//deal with response...

}
,
header:{

}
});
I want to mask the form when i upload to the server,and remove the mask when the server response.if the size of the upload file is too big,it takes a long time before i remove the mask,the mask can't be unmask ,it will mask the document in ff ,and move to the top of the document in ie8.
at last i use:
Ext.get('fm').child('div.ext-el-mask').remove();
Ext.get('fm').child('div.ext-el-mask-msg').remove();
then it works fine!