PDA

View Full Version : How can I show some error message if it has been produced while 'HttpProxy' ??



Globalia
15 Nov 2007, 3:37 AM
Hi all!
I'm trying to load some data in a grid, provided from an server-side XML.

The problem is that sometimes there can be an error, and i want to show it to the user, instead of an eternal loading message or an empty grid.
How can i do it?

thanks in advance!

efege
15 Nov 2007, 3:43 AM
Hi, you can try adding a listener for the proxy's loadexception event.

fay
15 Nov 2007, 3:44 AM
Search the forums for loadexception (http://extjs.com/deploy/ext/docs/output/Ext.data.Store.html#event-loadexception). Alternatively, look at the success parameter in the callback from the load (http://extjs.com/deploy/ext/docs/output/Ext.data.Store.html#load) method.

Globalia
15 Nov 2007, 3:51 AM
Well, thanks a lot, that solves half of the problem...

in the other side, when an internal server error is produced, the server answers with another XML, a error-xml.

How can i manage this?

thanks!