Если во время запроса ajax отсутствует сетевое соединение, sencha touch вернет ответ со статусом 0. Это то, что мы используем в нашем приложении (работает и в phonegap):
// global error handling
Ext.Ajax.on('requestexception', function(connection, response) {
// get rid of any loading masks that are present
Ext.each(Ext.query('.x-mask'), function(el) {
new Ext.Element(el).hide()
});
switch(response.status) {
case 0 :
Ext.Msg.alert('Error Loading', 'No Internet connection.');
break;
case 401 :
Ext.Msg.alert('Login Failed', 'Check your username and password.');
break;
default :
Ext.Msg.alert('Whoops!', 'An unexpected error has occurred and we have been alerted.');
}
});
Обратите внимание, что это для сенсорного 1.1, еще не пробовал в 2.0.