PDA

View Full Version : How to 'log' into a Panel's HTML content!?



realtebo2
8 Oct 2009, 7:56 AM
I've a panel with id "logPanel"

I'd like to add some text (for debugging purpose) to its conent (html? innerHTML?)

But how to do? get, getCmp or getEl or GetWhat ? And wich property to handle to add text?!

with autoload I autoload an html content. So I supposed I can add freely text to its content...

hendricd
8 Oct 2009, 8:24 AM
See the Docs for Element.appendChild:


panel.body.appendChild(
[
{tag: 'br'},
{tag : 'span', html: logText }
]);

realtebo2
8 Oct 2009, 8:45 AM
Your reply given me an idea. I'll do this:


panel= Ext.getCmp("fs-log");
panel.body.update (panel.body.dom.innerHTML + textToAddToLog) ;

Thanx ! It's works