Given that you have the array in CF already:

<cfset arr = [1,1,3,54]>

Just use toScript

<cfoutput>
<script>
#toScript(arr, "arr")#
</script>
</cfoutput>

On Fri, Sep 9, 2011 at 11:41 AM, Mo Lay <[email protected]> wrote:
>
> Hi guys ,
>
> wondering how we can output javascript array elements L1[i] using CF ?
>
> Any idea ?
>
> thanks
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-newbie/message.cfm/messageid:5566
Subscription: http://www.houseoffusion.com/groups/cf-newbie/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-newbie/unsubscribe.cfm

Reply via email to