if(form_berkas.getForm().isValid()){
form_berkas.getForm().submit({
method:'POST',
waitTitle:'Connecting',
waitMsg:'Sending data...',
success:function(form, action){
obj = Ext.JSON.decode(action.response.responseText);
Ext.Msg.alert('Information!', obj.errors);
dialog_berkas.close();
},
failure:function(form, action){
if(action.failureType == 'server')
{
obj = Ext.JSON.decode(action.response.responseText);
Ext.Msg.alert('Information!', obj.errors);
}else
{
Ext.Msg.alert('Warning!', 'Authentication server is unreachable : ' + action.response.responseText);
}
}
});
}
{ border:false, frame:false, width: 225, margin: '5px 0px 10px 9px', items: [{ xtype : 'textfield', fieldLabel : 'Telephone', inputType :'password', id : 'telephone', inputId: 'item_telepon', width: 225, readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Office no', inputType :'password', width: 225, id :'office_no', inputId: 'item_office_no', readOnly : true, fieldStyle :'background-image:none;background-color:#BDBDBD', },{ xtype : 'textfield', fieldLabel : 'Mobile no', inputType :'password', width: 225, id:'mobile_no', inputId: 'item_mobile_no', readOnly : true, fieldStyle :'back...
Komentar
Posting Komentar