PDA

View Full Version : How to Insert content TXT file to Ext.Window?



ganes
23 Oct 2011, 7:57 PM
28814
I'm ask to the point, how load an text file to that ext.window, I try with Ext.Component with no luck yet.

fschaeffer
23 Oct 2011, 8:41 PM
You can either use the autoLoad: [your URL] property when creating the window, or you can use the panel.loader.load([URL]) - function.

ganes
23 Oct 2011, 10:45 PM
You can either use the autoLoad: [your URL] property when creating the window, or you can use the panel.loader.load([URL]) - function.

autoLoad did solve my problem, but i still dont get it, autoLoad was never inherited in Window class, how that can be used by Window class... i'm still learn how to use documentation, but thanks anyway.

fschaeffer
23 Oct 2011, 11:37 PM
Hi, please mark this thread as answered.

For your question: window is (as almost every thing in Ext) a component. There is a loader defined which can use the autoLoad property (though it is not documented and I think you shouldn't rely on this).

The official way would be to use the loader (I suppose)....

But to be honest, I also use the autoLoad - config-option as long it is working as it is a very convenient way ...