PDA

View Full Version : Help to load component on the fly.



jwaiwit
12 Mar 2011, 1:31 AM
Hi , I have search through forum and google for help but can't find any clue.
I wonder about is possible to load a component through Ext.Window.load.


First I created a new window, but i try to use a .load function to get a content from server.

Of course in content is contained a Ext js script (already set scripts:true, evaluate alert find.) to create a new component.

But I failed to create or load to back to window area.

is Possible to do like this ? If not could u suggest me a way out :)

jwaiwit
12 Mar 2011, 2:02 AM
Lucky , I found by myself now,

Use a ajax to load content then eval and use .add(), .doLayout() for do my fancy.
thanks for reading.