I just realized that my example wasn't very clear.  Hope this is a little
better:

<cfset structName = structNew()>
<cfset structName["caseSensitiveNode"] = "Node name will retain case">
<cfset structName.caseInsensitiveNode = "Node name will be all uppercase">
<ul>
<cfloop collection="structName" item="nodeName">
<cfoutput><li><strong>#nodeName#:</strong>
#structName[nodeName]#</li></cfoutput>
</cfloop>
</ul>

On Mon, Jun 16, 2008 at 12:37 PM, Sonny Savage <[EMAIL PROTECTED]>
wrote:

> I just wanted to chime in with a related issue with CF and struct nodes.  I
> was writing an AJAX form handler that used JSON when I discovered that case
> was not preserved when using dot notation on struct elements.  The solution
> is to use quoted node names like this: structName["caseSensitiveNode"]
>
> Edward A Savage Jr - "Sonny"
> Senior Software Engineer
> Creditdiscovery, LLC
> "An appeaser is one who feeds a crocodile, hoping it will eat him last." ~
> Sir Winston Churchill
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307560
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to