Re: populate a javascript var with cfoutput?

2007-03-08 Thread Jake Pilgrim
Generic way of doing this would be: addresses[#arrayIndex#] = '#name#, #address#, #city#, #state#'; ya it clutters up your display page code, but it works. It also makes debugging any javascript syntax issues (i.e. name = "o'connor" - the extra ') a breeze :). Jake Pilgrim >I n

RE: populate a javascript var with cfoutput?

2007-03-08 Thread Andy Matthews
Simple way of doing this would be to concatenate the addresses together in SQL, then use ValueList to populate the javascript: SELECT Name + ', ' + address + ', ' + city + ', ' + state AS address FROM yourTable -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Se