It looks like the field names being returned are in all-caps, and the your
bindings are not. Try to capitalize your bindings in your spry output, ie
{FNAME} and {LNAME}.
Steve
-----Original Message-----
From: "Dan Vega" <[EMAIL PROTECTED]>
Sent 11/9/2007 6:45:30 PM
To: "CF-Talk" <[email protected]>
Subject: cfsprydataset & JSON questionI am playing around with the new
cfsprydataset tag and I have hit a wall. I
am a bit of a spry newb as well so that could be my problem. The following
code works great and via firebug i can see the returned data (see below) but
nothing gets generated. What am i doing wrong?
<cfmodule template="layout.cfm" title="Contacts / List All Contacts"
subnav="contact">
<script>
Spry.Data.Region.debug = true;
</script>
<cfsprydataset name="dsContacts" bind="cfc:
com.myproject.contacts.getContacts()" type="json"/>
<div id="mydata" spry:region="dsContacts">
<table>
<tr spry:repeat="dsContacts">
<td>{fname}</td>
<td>{lname}</td>
</tr>
</table>
</div>
</cfmodule>
RETURNED JSON
{"COLUMNS":["FNAME","LNAME"],"DATA":[["Karen *****","Pfeiffer,
ASID"],["Jeff","S****"],["Brenda"
,"****n"],["James","*****r,
ASID"],["Bill","*****s"],["Harry","*****"],[".","."],[".","."],["Bob"
,"."],[".","."],[".","."],[".","."],["Rick","Ho***s"],[".","."],["****y","."],[".","."],[".","."],["
...","."],[".","."],["Al","***"]]}
--
Thank You
Dan Vega
[EMAIL PROTECTED]://www.danvega.org
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293064
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4