I been playing around with your framework quite a bit the past few
days, and I love it. This is an amazing project you have created. I
just rewrote part of a Fusebox project yesterday, and I can already
see how much faster and simpler it would be to build out the entire
thing in ColdBox.
Anyway, I was actually wondering if I could pick your brain for best
practices for intelligently loading JavaScripts. In other words,
selectively load scripts based on what is needed in the request.
Something more elegant than a huge cfswitch block in the head of the
layout doc.
Ideally, I would like to be able to announce what I need (i.e. -
jQuery, AjaxCFC, some UI component, etc.) within each event handler,
or, for an entire event handler CFC?
I’m dreaming of something like a comma delimited list of the
JavaScript blocks/packages I want to include in a handler… <cfset
event.getScript("jQuery, AjaxCFC, tableSorter") />
How do you handle this? Can you give me some tips, or an example that
is helpful?
Would it be better if I post this in the forum?
Thanks,
Thomas Dehli
Also, I should have included a style sheet for the PU-36 form template
I sent, something like this…
.formLayout label {
float:left;
color: #333366;
text-align:right;
font-weight:bold;
font-size:11px;
margin-right:8px;
display:block;
width:20em;
line-height:1.5em;
}
ul.formLayout {
clear:both;
float:left;
list-style: none;
padding:0;
margin:8px 0;
width:99%;
}
ul.formLayout li {
clear:both;
color:#000;
padding:0;
margin:6px 0;
}