PDA

View Full Version : Is there a way to display html to an extjs component??



Akamy2kidsmom
5 May 2009, 10:10 AM
Is there a way to display html, as is with no additional rendering, to an extjs component?? I see that there is a ContentPanel.setUrl() in GWT, but I don't see anything similar in extjs. Has anyone done anything like this before?

Thanks in advance for your help.
Page

evant
5 May 2009, 10:14 AM
Assuming you're using a panel, use either the autoLoad or html config.

5 May 2009, 10:41 AM
you can also load an instance of Ext.Element by leveraging it's load() method

Akamy2kidsmom
5 May 2009, 11:35 AM
I don't have all the kinks worked out just yet, but I used the autload url on the panel and I'm seeing my data.

Thanks for your quick response!
Page