Today, I've found funny resolution to get javascript value from Coldfusion in same page without reloading. I'm not sure whether it might be useful or not, but for me it's kinda useful.
Usage
2 <script>
3 var whatisyourname = "ppshein";
4 document.write(whatisyourname);
5 </script>
6</cfsavecontent>
7
8<cfoutput>#JSvalue#</cfoutput>

Android
Top of Page
#1 by Fredi on 2/10/12 - 10:45 AM
<cfset myTranslations = { "lbl_hello" = {EN = "Hello", DE = "Hallo"} }>
<cfhtmlhead text="<script type=""text/javascript"">var myTranslations = #serializeJSON(myTranslations)#;</script>">
#2 by ppshein on 2/10/12 - 11:05 AM
#3 by Jules Gravinese on 2/10/12 - 2:57 PM
I don't see why to bother with cfsavecontent then cfoutput. Why not just write the [script] directly to the page?
#4 by ppshein on 2/10/12 - 11:33 PM
Sorry, it's my careless mistake using cfoutput in cfsavecontent.
Why I'm using like that is I want to store JS variable in CFM page without refreshing current page. For example, displaying current user screen resolution in CFM page.
#5 by Brian Meloche on 2/12/12 - 5:50 PM
#6 by ppshein on 2/12/12 - 8:03 PM
Thanks. I'll fix it soon,
#7 by Jules Gravinese on 2/13/12 - 7:03 AM
#8 by ppshein on 2/13/12 - 8:02 AM
Sorry again, it's my careless mistake using cfoutput in cfsavecontent.
#9 by Raymond Camden on 2/13/12 - 4:27 PM
#10 by ppshein on 2/13/12 - 8:17 PM
#11 by Raymond Camden on 2/13/12 - 10:23 PM
#12 by ppshein on 2/13/12 - 10:36 PM