PDA

View Full Version : Preferred architecture



extjs@bosgeluk.nl
30 Jul 2012, 11:04 PM
Hi, I'm using the 4.1.0 version.

What would be the most preferred architecture given the wish to load pieces of the application at run time and not before-hand? There are some paths I've explored:

loading HTML, for example by creating a new panel and let that HTML load JS
load JS by adding a script tag to the dom
make use of the Ext.Loader.loadScriptFile (which happens to be marked as private in the documentation, in contrast to the Ext.Loader.loadScript which happens not to work at all?)
Furthermore I know I still haven't grasped the whole meaning and implications of namspaces and somehow I think that these are awfully important in this situation.

Any advice or pointers would be greatly appreciated.

scottmartin
31 Jul 2012, 1:45 PM
Have you reviewed the MVC architecture?
http://www.sencha.com/learn/the-mvc-application-architecture/
http://extjs-tutorials.blogspot.com/2012/01/extjs-mvc-dynamic-controller-view-model.html

Scott