-
17 Dec 2012 3:29 PM #1
Unanswered: Controller control: and dom element listeners
Unanswered: Controller control: and dom element listeners
Hi Everyone,
I am working on an ST 2.1 based app at the moment and will be using the ChildBrowser to display external content. That's the easy part.
I have html content in my app and in that I have littered tags like
I would like to be able to modify my control: {} block and add an itemtap for these <a/> tags to my controller, without having to add event listeners and delegates to all of my views.Code:<a href="http://www.somewhere.com" title="Go somewhere in ChildBrowser" rel="external">Some site</a>
Can this be done? And if so, how? Caouldn't find much on Google about it.
Thanks in advance,
Matt
-
19 Dec 2012 7:30 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,693
- Vote Rating
- 435
- Answers
- 3111
The controller does not have any mechanism to listen for element events, only component events. You view needs to listen for the elements it has and then fire an event on itself so then the controller can listen to it.
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.


Reply With Quote