Jul 30, 2009, 10:11 AM
ScriptContainer Problem
Hi,
In my code I have a javascript dependency problem. At the moment I have some code that goes like this:
1 - Use ScriptContainer to include ExtJs/Coolite/control creation code.
2 - Include my own script which defines some functions but makes use of Ext.
The problem is that because I use the ScriptContainer to position the Ext includes before my own script, i also end up including the code to create my controls before i have defined functions needed by them in my own code (2).
I understand I can have Coolite not inject the scripts for me, however, will i sufer any problems by this? The order I need is:
1 - Include ExtJs/Coolite libraries.
2 - Include my own script.
3 - ExtJs control creation code
Any help would be great.
Thanks
In my code I have a javascript dependency problem. At the moment I have some code that goes like this:
1 - Use ScriptContainer to include ExtJs/Coolite/control creation code.
2 - Include my own script which defines some functions but makes use of Ext.
The problem is that because I use the ScriptContainer to position the Ext includes before my own script, i also end up including the code to create my controls before i have defined functions needed by them in my own code (2).
I understand I can have Coolite not inject the scripts for me, however, will i sufer any problems by this? The order I need is:
1 - Include ExtJs/Coolite libraries.
2 - Include my own script.
3 - ExtJs control creation code
Any help would be great.
Thanks