The EXTJS Thread

<?php?>

Well-Known Member
Joined
Nov 15, 2010
Messages
367
Reaction score
0
I'm building a large RIA application using EXTJS, and would like to dynamically load components (extended classes) from within the main application.js script.

The application will eventually run as an Intranet application that will be regularly amended and modified as requests for additional features and functionality is submitted for development, therefore I would like to break the application apart in modules, instead of one concatenated and minified .js file.

How do I implement and call the Ext.Loader() class, to dynamically load components as needed.

Thanks.
 
Last edited:
I'm currently using the PHP directory functions to enumerate all the .js files in the RIA's root directory, into an PHP array. I then loop through the array and generate and output the <script> include tags.

I however feel that there should be a better way of acomplishing the task using the EXTJS classes, and load the components asynchronously as needed.

Any help would be highly appreciated.

Thanks.
 
Also build a semi-large RIA two years ago using EXTJS, which still serves about 1,500 users currently. Also had a similar thing where different user groups would get different functions, and thereby only specific JS files were needed to load for the different user groups. So the simplest solution at that time was also just to use php to load the JS files dynamically according to the functions the user group had defined in the DB.

But after busting my nuts off writing this thing, I found it really cumbersome updating and adding features to it and started hating EXTJS. Since then I have just been using Codeigniter & jquery to develop my RIA's and what a pleasure it is !

Sorry I know I am not helping with an answer to your question, just sharing my thoughts on EXTJS.
 
Last edited:
. . . Since then I have just been using Codeigniter & jquery to develop my RIA's and what a pleasure it is !

Thanks, the server back end for this project is also built using Codeigniter. I considered JQuery UI and YUI, but found EXT's widgets more appealing to the project's end users.
 
Top
Sign up to the MyBroadband newsletter
X