PDA

View Full Version : Restore focus after Msg.wait



Maxvader
25 Jun 2009, 1:23 AM
Hi everyone, I'm building a complex interface with a lot of ajax calls and Ext components (a tree on the left, an autogenerated tab panel on the right..) and some of the calls require a long time.
So I added Ext.Ajax.on('beforerequest') method that displays a wait message and removes it on completion.
It works but the wait msg removes the focus on clicked element, that prevents keyboard navigation.
Do you have any idea on how to save the focused element and re-focus after loading?
Thank you in advance