PDA

View Full Version : [CLOSED] Intercepting errors that occurred in webservice



supera
Jul 18, 2012, 12:59 PM

Daniil
Jul 18, 2012, 3:40 PM
Hi,

Please set up:

userFailure : function () {
alert('Error');
}

By the way, Ext.net.directRequest is designed rather for DirectEvents which are defined in the markup or code behind.

For requests managed from client side please use

Ext.net.DirectMethod.request({ /* request config */ })
instead of

Ext.net.directRequest

In that case you will need to use "failure" instead of "userFailure".

supera
Jul 24, 2012, 3:22 PM
Works very fine!

Thanks Daniil!