PDA

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



supera
Jul 18, 2012, 11:59 AM

Daniil
Jul 18, 2012, 2: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, 2:22 PM
Works very fine!

Thanks Daniil!