Aaron you should check out cfstatic its like cfjavascript on steroids
A
On 27 Apr 2013 20:19, "Aaron J. White" <[email protected]> wrote:
> Also, I just found that adding cfoutput inside cfjavascript lets me do
> what I want, but I still think an attribute for this functionality would be
> better.With cfoutput the code ends up looking like this:
>
> <cfsilent >
> <cfset page.login = buildURL('login.index') />
> </cfsilent>
> <cfjavascript output="HEAD">
>
> <cfoutput>
>
> $(document).ready(function(){
> $('##login').click(function(){
> window.location.href='#page.**login#';
> });
> });
>
> </cfoutput>
>
> </cfjavascript>
>
> On Saturday, January 21, 2012 4:15:49 PM UTC-6, Aaron J. White wrote:
>>
>> 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/
> http://groups.google.com/group/openbd?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Open BlueDragon" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.