Howdy!

I have a particular set of requirements when it comes to my CSS and JS - it needs to come out in the same order I put it in.  I have several "global" JS widgets set, in order: MochiKit (from TurboGears), CSSQuery, and my Custom JS.  I also have many CSS files, in order: Yahoo (reset,fonts,grids), and my Custom CSS.  I expect CSS/JS added by form-based widgets to be output after the global CSS/JS.  Unfortunately, this isn't happening on -some- controllers, but is working correctly on others.

As a sample, I have the following in my <head>, generated by TG:

<script src="" type="text/_javascript_"></script>
<script src="" type="text/_javascript_"></script>
<script type="text/_javascript_">
site_AjaxSingleSelect = new AjaxSingleSelect('/lookup/sites', 'form_site');

function load_site() {
var element = getElement("form_site");
element.onchange();
} addLoadEvent(load_site);
</script><!-- repeated once for each AjaxSingleSelect field -->
<link media="all" href="" type="text/css" rel="stylesheet"></link>
<link media="all" href="" type="text/css" rel="stylesheet"></link>
<link media="all" href="" type="text/css" rel="stylesheet"></link>
<link media="all" href="" type="text/css" rel="stylesheet"></link>
<script src="" type="text/_javascript_"></script>
<script src="" type="text/_javascript_"></script>

AjaxSingleSelect is defined in default.js, which is loaded last.  As CSS and JS links are referenced by widgets as lists of CSSLink and JSLink objects, why is the order being modified?

This is a bit of a critical issue, as forms with garbled output orders just don't work, as you could imagine.  Should I submit a ticket?

As a temporary fix, I have referenced the appropriate JS by hand in my sitetemplate, but I want to use JSLinks to help facilitate .

Matthew Bevan, Systems Administrator
Top Floor Computer Systems Ltd.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to