Sencha Ajax 처리시 다른 것 클릭하지 못하도록 처리
2025. 1. 27. 22:26ㆍJavascript/Sencha
Ext.getBody().mask(), Ext.getBody().unmask() 사용
Ext.getBody().mask('Please wait...'); // Mask the entire application body
Ext.Ajax.request({
url: '/url',
rawData: formData,
headers: {
'Content-Type': null // Let the browser set the appropriate boundary
},
success: function(response) {
Ext.getBody().unmask(); // Remove the mask on success
const result = Ext.decode(response.responseText);
console.log(result);
},
failure: function(response) {
Ext.getBody().unmask(); // Remove the mask on failure
const result = Ext.decode(response.responseText);
console.log(result);
Ext.Msg.alert('Failure', 'File upload failed.');
}
});
'Javascript > Sencha' 카테고리의 다른 글
Sencha align이 빠져서 화면이 안보이는 경우 (0) | 2025.01.29 |
---|---|
Sencha Master-Slave gird Sample (0) | 2025.01.29 |
Sencha 첨부파일 input의 값이 'undefined'인 경우 처리 (0) | 2025.01.27 |
Sencha grid에서 추가된 row와 변경된 row 구분하기 (0) | 2025.01.27 |
Sencha enctype="multipart/form-data"에서 파일 여러개 처리하기 (0) | 2025.01.27 |