Hey Guys,
I messed with cfjavascript and stylesheet today and it seems really
cool. There was one thing I couldn't do that I wish I could. It would
be nice if cfjavascript (and maybe stylesheet) had an attribute that
would make it double as a cfoutput when placing code inline. Does that
seem reasonable? Sorry for the .net reference.
Currently I am doing this:
<cfoutput>
<script type="text/javascript">
var global = {
'ck':"#application.api.key#",
'imgBase':"#application.api.imageBase#",
'doStuff': false,
};
</script>
</cfoutput>
But I would prefer to do this:
<cfjavascript runat="server">
var global = {
'ck':"#application.api.key#",
'imgBase':"#application.api.imageBase#",
'doStuff': false,
};
</cfjavascript>
--
online documentation: http://openbd.org/manual/
google+ hints/tips: https://plus.google.com/115990347459711259462
http://groups.google.com/group/openbd?hl=en
Join us @ http://www.OpenCFsummit.org/ Dallas, Feb 2012