Dynamic content in ExtJS Window

Posted by Ozaki on Stack Overflow See other posts from Stack Overflow or by Ozaki
Published on 2010-06-02T05:53:46Z Indexed on 2010/06/02 6:13 UTC
Read the original article Hit count: 420

Filed under:
|
|

TLDR I want to add some dynamic content into an Ext-JS window / popup.


Currently I have tried assigning this content to a div and pulling on the innerhtml of that div like:

                new Ext.Window({
                height: 50,
                width: 160,
                x: 0,
                y: 30,
                layout: "fit",
                html: document.getElementById('output').innerHTML;
            }).show();

Am using jquery & getjson to get the dynamic data.

But that does nothing at all.
Has anyone done something similar before?

Can I give the html of the window an id and use it like an element?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery