Jan 13, 2011, 2:43 PM
[CLOSED] [1.0] Forcing all ext net scripts to load
Is there a way to force all of the ext net scripts to load on a page other then including a control that uses that script AND is there a way to force the order?
I have a project that has many extensions and I am using JSBuild to min the files and combine into 1. In order to load the scripts, on the master page I add an extended Ext.Net.Hidden control that the Resources Property adds css and js files I need.
I did it this way because then other developers would only have to add the
The js file includes grid panel extensions that require the extnet-data-js file AND the extnet-data-js file needs to be above the resources file I add otherwise I get a prototype error.
Currently the source shows in the script area the files is this order:
I know I can do this by including a separate js file in each extended control and adding in the controls resource property (the way I currently do it) but I lose the ability to min into 1 file then. We have 15 extended controls with js files and most of them are used on each page.
Hopefully this made some sense. Please let me know any questions you have.
Thank You~
edit: I forgot about Registering the resources. I added
I have a project that has many extensions and I am using JSBuild to min the files and combine into 1. In order to load the scripts, on the master page I add an extended Ext.Net.Hidden control that the Resources Property adds css and js files I need.
I did it this way because then other developers would only have to add the
<abx:ABMaster runat="server" ID="Master1" />
right after the <ext:ResourceManager />
and all of the js functions and css files would be loaded for them. This allows our multiple internal apps to all look and feel the same.The js file includes grid panel extensions that require the extnet-data-js file AND the extnet-data-js file needs to be above the resources file I add otherwise I get a prototype error.
Currently the source shows in the script area the files is this order:
/extjs/adapter/ext/ext-base-debug-js/ext.axd?v=16357
/extjs/ext-all-debug-js/ext.axd?v=16357
/extnet/extnet-core-debug-js/ext.axd?v=16357
/WebResource.axd?
/extnet/extnet-data-debug-js/ext.axd?v=16357
The WebResource file is the one that is added in the extended hidden control and I need it below the extnet-data file.I know I can do this by including a separate js file in each extended control and adding in the controls resource property (the way I currently do it) but I lose the ability to min into 1 file then. We have 15 extended controls with js files and most of them are used on each page.
Hopefully this made some sense. Please let me know any questions you have.
Thank You~
edit: I forgot about Registering the resources. I added
Net.ResourceManager.RegisterControlResources(Of GridPanel)()
in the Resources Poperty of the extended hidden control. Works exactly like I need it to!
Last edited by Daniil; Jan 14, 2011 at 8:55 PM.
Reason: [CLOSED]