I'm having some trouble on the OUTPUT end of this: I'm setting up an array and passing the values to a cookie using cfwddx for use on any number of pages within a site, like so:
<cfoutput query="PYPRY"> <cfset roomVAR[ArrayLen(roomVAR)+1][1] = "#trim(PYPRY.PRYDSC)#"> <cfset roomVAR[ArrayLen(roomVAR)][2] = "#trim(QD2.RecordCount)#"> <cfset roomVAR[ArrayLen(roomVAR)][3] = "#trim(PYPRY.PRYPTYID)#"> <cfset roomVAR[ArrayLen(roomVAR)][4] = "#trim(PYPRY.PRYSID)#"> </cfoutput> <!--- AND LET'S PUT ALL THAT CRAP INTO A CFWDDX COOKIE ---> <cfwddx input="#roomVAR#" output="darooms" action="CFML2WDDX"> <cfcookie name="termROOMS" value="#darooms#"> So far so good, no errors. #ArrayLen(roomVAR)# is showing the proper array size...so I know it's all in there. I decode the thing on whatever page needed first: <cfwddx INPUT="#cookie.termROOMS#" output="roomVAR" ACTION="wddx2cfml"> OK, now how do I OUTPUT this this thing using a loop to show it all? Nothing I've tried so far seems to be working correctly.... Something like the below errors out: <cfoutput> <cfloop collection="#roomVAR#" item="NOT SURE WHAT GOES HERE!!!"> #roomVAR[ArrayLen(roomVAR)+1][1]#<br> #roomVAR[ArrayLen(roomVAR)][2]#<br> #roomVAR[ArrayLen(roomVAR)][3]#<br> #roomVAR[ArrayLen(roomVAR)][4]#<br> </cfloop> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm

