<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
    <link>https://forums.adobe.com/community/coldfusion/mobile?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 07 Jul 2014 10:33:19 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-07-07T10:33:19Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6528141?tstart=0#6528141</link>
      <description>&lt;!-- [DocumentBodyStart:c2c7dc24-1202-473d-beb9-c8e3de62ce84] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;There is something else about cfclient that I find even more worrying. Consider the following code snippet:&lt;/p&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;&amp;lt;cfclient&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cfset document.getElementById("result").innerHTML = "Hello"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/cfclient&amp;gt;&lt;/p&gt;

&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This code, found in almost all the demonstrations Adobe has published on the new cfclient tag, mixes the syntax of the two languages, Coldfusion and Javascript. That can only mean one thing: confusion.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;In fact, I wonder why it works, as it is invalid CFML. Do you get my &lt;span style="font-weight: normal;"&gt;&lt;span class="t_nihongo_kanji" lang="ja"&gt;日本語? Then you get my drift. &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;em&gt;Reference: &lt;/em&gt;&lt;a class="jive-link-external-small" href="https://wikidocs.adobe.com/wiki/pages/viewpage.action?pageId=138577945&amp;amp;focusedCommentId=142214715#comment-142214715" rel="nofollow"&gt;&lt;em&gt;Adobe cfclient documentation&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c2c7dc24-1202-473d-beb9-c8e3de62ce84] --&gt;&lt;img src='/beacon?t=1415919339283' /&gt;</description>
      <pubDate>Mon, 07 Jul 2014 10:31:55 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6528141?tstart=0#6528141</guid>
      <dc:date>2014-07-07T10:31:55Z</dc:date>
      <clearspace:dateToText>4 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6361012?tstart=0#6361012</link>
      <description>&lt;!-- [DocumentBodyStart:7f8a6226-547a-48f4-b68e-993944cea717] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;blockquote class="jive-quote"&gt;
&lt;p&gt;PaulNibin wrote:&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi Adam,&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you write code inside &amp;lt;cfclient&amp;gt;, it is translated to java script. It cannot access server side variables(defined outside cfclient).&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;code style="font-weight: inherit; font-style: inherit;"&gt;&amp;lt;script&amp;gt; message = "G'day World"; &amp;lt;/script&amp;gt; &amp;lt;cfclient&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The above code works because, message is defined in a script block and client side CFML is interoprable with javascript. So client side CFML can use variables, functions defined in javascript blocks.&lt;/p&gt;
&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Paul&lt;/p&gt;
&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;So you're saying you did not provide a mechanism for transferring the variables from the server-side part of a file's code to the client side part? Is this not a bit of an oversight?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;And what - in your mind - is the point of having a file with blocks of both normal CFML, and then a &amp;lt;cfclient&amp;gt; block, then more CFML, then another &amp;lt;cfclient&amp;gt; block (for example) if the code cannot interact?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:7f8a6226-547a-48f4-b68e-993944cea717] --&gt;</description>
      <pubDate>Wed, 07 May 2014 09:29:37 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6361012?tstart=0#6361012</guid>
      <dc:date>2014-05-07T09:29:37Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6361006?tstart=0#6361006</link>
      <description>&lt;!-- [DocumentBodyStart:f1af69b8-9b90-4d34-a208-d21a9ec3380c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Thanks Akhila&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-- &lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f1af69b8-9b90-4d34-a208-d21a9ec3380c] --&gt;</description>
      <pubDate>Wed, 07 May 2014 08:48:11 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6361006?tstart=0#6361006</guid>
      <dc:date>2014-05-07T08:48:11Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6357465?tstart=0#6357465</link>
      <description>&lt;!-- [DocumentBodyStart:28975f38-b67d-4763-8b37-189e14aa877a] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;A bug(#3755482) is logged to get proper error message when &amp;lt;cfclient&amp;gt; tag is used with invalid attributes. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Akhila.&lt;/p&gt;&lt;p&gt;Adobe ColdFusion Engineering Team.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:28975f38-b67d-4763-8b37-189e14aa877a] --&gt;</description>
      <pubDate>Tue, 06 May 2014 09:21:24 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6357465?tstart=0#6357465</guid>
      <dc:date>2014-05-06T09:21:24Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6354683?tstart=0#6354683</link>
      <description>&lt;!-- [DocumentBodyStart:40c64205-7e45-4a0c-a9b0-08a6be0205a2] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hi Adam,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When you write code inside &amp;lt;cfclient&amp;gt;, it is translated to java script. It cannot access server side variables(defined outside cfclient).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;code style="font-weight: inherit; font-style: inherit;"&gt;&amp;lt;script&amp;gt; message = "G'day World"; &amp;lt;/script&amp;gt; &amp;lt;cfclient&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The above code works because, message is defined in a script block and client side CFML is interoprable with javascript. So client side CFML can use variables, functions defined in javascript blocks.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Paul&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:40c64205-7e45-4a0c-a9b0-08a6be0205a2] --&gt;</description>
      <pubDate>Mon, 05 May 2014 14:26:40 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6354683?tstart=0#6354683</guid>
      <dc:date>2014-05-05T14:26:40Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>ColdFusion 11: &lt;cfclient&gt;... how does normal CFML code and &lt;cfclient&gt; code interact?</title>
      <link>https://forums.adobe.com/message/6350595?tstart=0#6350595</link>
      <description>&lt;!-- [DocumentBodyStart:42c85535-9943-45d0-bfbb-365f810bdded] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;G'day:&lt;/p&gt;&lt;p&gt;I am reposting this from my blog ("&lt;a class="jive-link-external-small" href="http://cfmlblog.adamcameron.me/2014/04/coldfusion-11-cfclient-how-does-normal.html" rel="nofollow"&gt;ColdFusion 11: ... how does normal CFML code and&amp;nbsp; code interact?&lt;/a&gt;") at the suggestion of Adobe support:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;blockquote class="twitter-tweet" data-conversation="none" lang="en"&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="https://twitter.com/dacCfml" rel="nofollow"&gt;@dacCfml&lt;/a&gt; &lt;a class="jive-link-external-small" href="https://twitter.com/coldfusion" rel="nofollow"&gt;@ColdFusion&lt;/a&gt; Can you post your queries at &lt;a class="jive-link-external-small" href="http://t.co/8UF4uCajTC" rel="nofollow"&gt;http://t.co/8UF4uCajTC&lt;/a&gt; for all cfclient and mobile queries.&lt;/p&gt;&amp;#8212; Anit Kumar Panda (@anitkumar85) &lt;a class="jive-link-external-small" href="https://twitter.com/anitkumar85/statuses/461203317712879618" rel="nofollow"&gt;April 29, 2014&lt;/a&gt;&lt;/blockquote&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have edited this in places to remove language that will be deemed inappropriate by the censors here. Changes I have made are in [square brackets]. The forums software here has broken some of the styling, but so be it.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;G'day:&lt;br/&gt;Another quick one. I'm raising these quick-fire questions here because Adobe have declined to suggest a better place to raise them, other than as comments on one of their blog entries. Well that was &lt;a class="jive-link-external-small" href="http://blogs.coldfusion.com/post.cfm/coldfusion-splendor-when-to-use-invokecfclientfunction#comment-7CD38A73-C83B-CF1E-7D8CBE34AFB40E7A" rel="nofollow"&gt;Ram's suggestion&lt;/a&gt; (which I don't think is terribly-well thought out). He declined to react to my suggestion that the Adobe ColdFusion forums might be a good place. Anit suggested Twitter or just emailing him, but I think there'd be public interest in this stuff, so don't want to resort to email.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;As I'm the master of what goes on on this blog: I'll clutter this thing up.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;Say I want to have a mix of "normal" CFML and &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt;-based CFML in the same file. I can only presume the intent is to allow this, otherwise having &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; as a &lt;em&gt;tag&lt;/em&gt; rather than just a file extension seems like a poor approach. Obviously if one can have a start tag and an end tag, then code can come before (and I guess after) the &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; tags themselves.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;So I'd expect this to work:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;cfset message = "G'day World"&amp;gt; &amp;lt;cfclient&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;However all I get is an error in JS:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="console-group" style="-webkit-text-stroke-width: 0px; background-color: white; box-sizing: border-box; color: #222222; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; position: relative; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; padding-left: 30px;"&gt;&lt;div class="console-group-messages" style="box-sizing: border-box;"&gt;&lt;div class="console-error-level console-message" style="border-bottom-color: #f0f0f0; border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; clear: right; margin-left: 24px; min-height: 16px; padding: 1px 22px 1px 0px; position: relative;"&gt;&lt;ol class="outline-disclosure" style="-webkit-padding-start: 12px; box-sizing: border-box; font-size: inherit; line-height: 12px; list-style-type: none; margin: 0px; padding-left: 0px;"&gt;&lt;li class="parent" style="box-sizing: border-box; margin-left: -12px; margin-top: 1px; padding: 0px 0px 0px 14px; word-wrap: break-word;" title=""&gt;&lt;span class="console-message-text source-code" style="box-sizing: border-box; color: red !important; font-family: Consolas, 'Lucida Console', monospace; font-size: 12px !important; white-space: pre-wrap;"&gt;&lt;span style="box-sizing: border-box;"&gt;Uncaught ReferenceError: message is not defined&lt;/span&gt; &lt;a class="jive-link-external-small" href="https://www.blogger.com/null" rel="nofollow"&gt;variablesScopeVariable.cfm:4&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;And, indeed, the only mention of &lt;code&gt;message&lt;/code&gt; in the JS source is the one that's erroring (as it's on the right-hand side of an assignment).&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;So I thought perhaps &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; worked like &lt;code&gt;&amp;lt;cfthread&amp;gt;&lt;/code&gt; and I needed to pass attributes into it:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;cfset message = "G'day World"&amp;gt; &amp;lt;cfclient&lt;span style="background-color: #ea9999;"&gt; message="#message#"&lt;/span&gt;&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;This doesn't compile:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;table border="0" cellpadding="0" cellspacing="0" style="background-color: #e7e7e7; font-family: verdana; width: 500px; padding-left: 30px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="left" style="border:0px solid black;" valign="middle" width="500"&gt;&lt;h1 style="font-size: 13pt; font-weight: normal; line-height: 15pt;"&gt;Attribute validation error for the &lt;span style="background-color: #f9cb9c;"&gt;client&lt;/span&gt; tag.&lt;/h1&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2" style="border:0px solid black;" width="400"&gt;&lt;span style="font-size: 8pt; line-height: 11pt;"&gt;The tag does not have an attribute called message. The valid attribute(s) are ''.&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td height="" style="border:0px solid black;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="2" style="border:0px solid black;" width="400"&gt;&lt;span style="font-size: 8pt; line-height: 11pt;"&gt;&lt;strong&gt;&lt;em&gt;ColdFusion cannot determine the line of the template that caused this error.&lt;/em&gt;&lt;/strong&gt;&lt;em&gt;This is often caused by an error in the exception handling subsystem.&lt;/em&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;Note also there's an error in the error message itself. It's not the &lt;code&gt;&amp;lt;client&amp;gt;&lt;/code&gt; tag, it's the &lt;code&gt;&amp;lt;&lt;em&gt;cf&lt;/em&gt;client&amp;gt;&lt;/code&gt; tag.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;Rightio then, so I tried just using the request scope instead (the code's the same as the variables-scoped example, except using the request scope). No dice: same JS error.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;As a last ditch effort, I just tried to see if &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; was aware of &lt;em&gt;anything&lt;/em&gt; going on around it, by passing a value on the URL, and seeing if &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; saw &lt;em&gt;that&lt;/em&gt;, eg:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;cfclient&amp;gt; &amp;lt;cfoutput&amp;gt;#URL.message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;This behaved differently from the variables- / request- scoped examples, in that I didn't get a JS error, I just got this on the screen:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;undefined&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;And no JS error. It pains me to have to do this, but let's look at the generated JS to see why the behaviour is different:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;Variables scope example:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;&amp;lt;script type="text/javascript" src="/CFIDE/cfclient/cfclient_main.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;script type="text/javascript" src="/CFIDE/cfclient/cffunctions.js"&amp;gt;&amp;lt;/script&amp;gt; &amp;lt;meta name="viewport" content="width=device-width"&amp;gt; &amp;lt;script type='text/javascript'&amp;gt; globalDivStruct=null; var _$variablesScopeVariable_func=function(){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var self=this;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var variables={};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.__init=function(){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var localdivstruct=globalDivStruct;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var __output_var="";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var tmpVarArray={};&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="background-color: #d5a6bd;"&gt;localdivstruct.outputvar+=message;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return""&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } }; function __startPage__$variablesScopeVariable(){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; document.write("\x3cdiv id\x3d'__cfclient_0'\x3e\x3c/div\x3e");&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; window.ispgbuild=false;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var clientDivStruct={&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; divId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : "__cfclient_0",&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outputvar&amp;nbsp;&amp;nbsp;&amp;nbsp; :""&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; globalDivStruct=clientDivStruct;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _$variablesScopeVariable=new _$variablesScopeVariable_func;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; _$variablesScopeVariable.__init()&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; catch(__eArg){&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(__eArg!=="$$$cfclient_abort$$$")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw __eArg;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; __$cf.__flush(clientDivStruct) } __startPage__$variablesScopeVariable(); &amp;lt;/script&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;The only significant difference (other than function names, based on the file names) between this and the URL-scoped example is the indicated line above is replaced by this in the URL example:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="source-code" style="padding-left: 30px;"&gt;&lt;code&gt;localdivstruct.outputvar+=__$cf.__arrayGet(URL,"message",true); &lt;/code&gt;&lt;/pre&gt;&lt;p style="padding-left: 30px;"&gt;&lt;br/&gt;So it's like it's &lt;em&gt;trying&lt;/em&gt; to do the right thing, but just failing. I thought it might be because CF does stupid thinks with scope-key casing, and changed the &lt;code&gt;&amp;lt;cfclient&amp;gt;&lt;/code&gt; code to expect &lt;code&gt;URL.MESSAGE&lt;/code&gt; not &lt;code&gt;URL.message&lt;/code&gt;, but this didn't work either.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="padding-left: 30px;"&gt;So I'm flummoxed. I can't find anything in any documentation which might point me in the right direction, so anyone know what the story is here?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;div class="updateBox" style="padding-left: 30px;"&gt;&lt;h4&gt;Update:&lt;/h4&gt;At Joel's suggestion I tried this:&lt;br/&gt;&lt;pre class="source-code"&gt;&lt;code&gt;&amp;lt;script&amp;gt; message = "G'day World"; &amp;lt;/script&amp;gt; &amp;lt;cfclient&amp;gt; &amp;lt;cfoutput&amp;gt;#message#&amp;lt;/cfoutput&amp;gt; &amp;lt;/cfclient&amp;gt; &lt;/code&gt;&lt;/pre&gt;&lt;br/&gt;&lt;em&gt;This&lt;/em&gt;worked. Which elicits from me a mixture of "heh: cute" and "this is an abomination".&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;/div&gt;&lt;p&gt;-- &lt;br/&gt;Adam&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:42c85535-9943-45d0-bfbb-365f810bdded] --&gt;</description>
      <pubDate>Sat, 03 May 2014 15:48:56 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6350595?tstart=0#6350595</guid>
      <dc:date>2014-05-03T15:48:56Z</dc:date>
      <clearspace:dateToText>6 months 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>5</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

