I need to dynamically populate "addresses" as shown below:

<script type="text/javascript">
var addresses = new Array("Redwood City, CA", "Palo Alto, CA", "Santa
Clara, CA", "San Jose, CA", "Sunnyvale, CA", "Mountain View, CA",
"Milpitas,CA");
</script>

I've been trying to use listappend but keep running into the issue of
the quotes as delimiters above.

<cfset addresses ="">

 <cfoutput query="qry_getaddresses">
        
<cfset addresses = listappend(addresses, "#name#, #address#, #city#,
#state#")>
                
</cfoutput>     

Am I missing the boat entirely on this?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
The most significant release in over 10 years. Upgrade & see new features.
http://www.adobe.com/products/coldfusion

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

Reply via email to