Well its the same as this. Originally it didnt have code to loop through the
struct and display the values.
<cfoutput><cfset results = deserializeJSON(url.data)>
<!--- <cfdump var="#results#"> --->
<cfloop collection="#results#" item="itemName">
<cfset item = results[itemName]>
<!--- <cfdump var="#item#" label="Item Name #itemName#"> --->
<cfloop collection="#item.vendors#" item="vendorName">
<ul><li><h2>#vendorName#</h2></li>
<cfset productArray = item.vendors[vendorName]>
<!--- <cfdump var="#productArray#" label="Products for vendor:
#vendorName#"> --->
<cfloop array="#productArray#" index="productName">
<li>#productName#</li></cfloop></ul>
</cfloop>
</cfloop>
</cfoutput>
Thats the code I added to the action.cfm just to loop through and display.
>What's the code on action.cfm?
>
>
>Well there was a div on the original action.cfm. When I changed the ajax
>function to post to my builderAction.cfm, I didnt pull the div over. I did
>just now, but wasnt exactly sure whether to wrap all the cfoutput and
>cfloops within the div or not. Tried it wrapped then moved it completely
>underneath that section of code.
>
>for
>>what I'm trying to do based on my last post?..lol
>>the
>>>file and saving to our shared folder in the office.
>>>
>>>All that works fine. But the need arose to somehow incorporate a way to
>>>generate lists of varying lengths and most likely several different lists
>>on
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340709
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm