-
22 May 2012 8:14 AM #1
Unanswered: Focus event on windows don't fired
Unanswered: Focus event on windows don't fired
Hello,
I've been trying to fire teh "focus" event when an ext window is focused, but nothing happens when occurs this. I'm working with 4.1 version of extJS, and other events, like "beforeclose" or "minimize" are executing properly. Could be an error related to this event? (I've seen in other thread this event is failing with another component).
Thanks.
-
25 May 2012 12:13 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
What are you attempting to do?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
27 May 2012 10:38 PM #3
I want to fire an event to change the ext windows header style when an ext windows has the focus, in order to show the focused element clearly.
-
28 May 2012 4:11 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
Try the activate event.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
28 May 2012 5:58 AM #5
It didn't work for me, but I got a kind of simulation of the focus event: I've get the html element directly by its id, and I add the event listener to the div that contains the window. It's rare that some events aren't fired when are assigned to an ext window.
-
28 May 2012 6:02 AM #6Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
- Answers
- 3107
activate works great for me. Fires when it is made the active wndow
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
21 Nov 2012 10:19 AM #7
But what about the deactivate or blur event?
But what about the deactivate or blur event?
Yes activate works, but deactivate doesn't. What is that?


Reply With Quote