PDA

View Full Version : Display error message on failed TreeLoader



seymores
7 May 2007, 8:00 AM
Hi all,

Can someone can help me out here.

I have a Tree and it's working fine. However sometimes my backend server-side operation will crash and my tree will stop loading. If not for Firebug I would have never know that the backend has crashed.

How should I do my error handling for tree loader? Is there any best practices or suggestion?
Thanks a lot!

Cheers,
Sey

tryanDLS
7 May 2007, 8:34 AM
You could add a handler for the the loadexception event or in callback check the response object for an error code.

seymores
7 May 2007, 3:48 PM
Thanks for the clue! :D