elkidos
17 Jun 2009, 8:30 PM
Hi guys,
First, I use ASP.NET for my back end and my web app manages two language : french and english.
Now, I want to structure my js files like so :
- application.js (the main entry point)
- sales.js (contains grids, panels, etc, for the sales section)
- contacts.js (contains grids, panels, etc, for the contacts section)
- and so on...
Well, I got a problem here. Since I have to wait after ASP.NET to render my page with the appropriate language, I can't include, for example, the file sales.js before application.js, cause the grids, panels and others extjs components in sales.js must know the right language to use (for example, to render headers column grid in french) AND the page isn't render yet.
The point is that I can only access my labels (in the right language) in the application.js file, within Ext.onReady(function() {...});
I wonder is there a way, like including the js files within the Ext.onReady(function() {...}) or something like that, so the grids, panels and other things could render properly??
How can I structure my application to make sense?
Thanks a lot!
First, I use ASP.NET for my back end and my web app manages two language : french and english.
Now, I want to structure my js files like so :
- application.js (the main entry point)
- sales.js (contains grids, panels, etc, for the sales section)
- contacts.js (contains grids, panels, etc, for the contacts section)
- and so on...
Well, I got a problem here. Since I have to wait after ASP.NET to render my page with the appropriate language, I can't include, for example, the file sales.js before application.js, cause the grids, panels and others extjs components in sales.js must know the right language to use (for example, to render headers column grid in french) AND the page isn't render yet.
The point is that I can only access my labels (in the right language) in the application.js file, within Ext.onReady(function() {...});
I wonder is there a way, like including the js files within the Ext.onReady(function() {...}) or something like that, so the grids, panels and other things could render properly??
How can I structure my application to make sense?
Thanks a lot!