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);
}
}
});
}
$sent = $radio_sent === 'true'? true: false; $new = $radio_new === 'true'? true: false;
Komentar
Posting Komentar