View Full Version : Loading applications inside an application

11 Jul 2012, 1:31 AM
I'm creating a frame application. Inside the frame you can click menu items. Those items load an application in the container next to it.


my folder structure:


Like my test app there will be more apps..

first idea was to use

console.log('loaded the required class', 'MyContainer');
//when this is fire I could create an instance and add it to the container.
}, this);

2 problems:
TestApp.app.view.MyContainer <=> TestApp.view.MyContainer

The classname is Test.view.MyContainer but the folder is TestApp/app/view/MyContainer
the callback method doesn't fire. When does supposed to fire?
To summarize my questions:

Is this a good approach or should I load the app.js?
How should I load it?
How about required controllers/stores/models/views and those references (where should I put them)?

11 Jul 2012, 3:20 AM
See detailed reply on stackoverflow (http://stackoverflow.com/questions/11427254/parent-child-application-model-loading-whole-applications-in-a-container).

11 Jul 2012, 3:51 AM
Thanks!! Mitchell Simoens' project at https://github.com/mitchellsimoens/SubAppDemo seems very usefull.

I think I was searching the wrong things because I found another useful thread.


Thanx for getting me on my way.