welcome to my space
- list of all addresse
- definition and histo
- what to wear for tra
- world war two
- airports technical i
- inner workings of co
- buying at liquidatio
- non profit foundatio
- song title and artis
- making pictures of c
- us army recruiting
- getting chin up bar
- get a copy of the ob
- wines in mondovino
-
Archives
-
Categories
-
Search
-
Meta
-
Credits
12 March, 2010 |
How do I retrieve div's found in tabPanel autoLoaded content?
I've started experimenting with Ext.js earlier this week, and absolutely love it. I am however encountering a few newbie obstacles, and I'm having little luck searching the forum and documentation for an answer.
I'm using an Ext.Viewport with a tabPanel attached to it. There are four tabs in the panel, each using autoload to retrieve an HTML-formatted document. This works perfectly.
Which brings me to my question:
How do I reach into a tab panel's autoloaded content to perform some action against a div found in that content? Even something as simple as changing the div background color? I can successfully retrieve say a tab's title using Ext.getCmp and then referencing the returned object's title attribute, but I can't seem to be able to dive into the div's of the HTML-formatted document which is otherwise successfully being rendered to that panel.
Any pointers greatly appreciated!!
Jason
I guess this is where my confusion stems from, because I've tried to use Ext.get and .on like so:
var chapter;
chapter = Ext.get('content');
chapter.on('click', onClick);
chapter.on('mousedown', cancelSelection);
chapter.on('selectstart', cancelSelection);
However when the script executes, I get the Firebug message:
"chapter has no properties"
My actual autoloaded HTML file is much larger, but suppose it looks like this:
hello world
#If you have any other info about this subject , Please add it free.# |