tag:help-archives.hannonhill.com,2010-02-09:/discussions/how-do-i/320-populate-a-javascript-array-with-xml-dataCascade CMS: Discussion 2014-03-25T20:56:41Ztag:help-archives.hannonhill.com,2010-02-09:Comment/50687052011-03-08T18:12:35Z2011-03-08T18:12:35ZPopulate a javascript array with XML data<div><p>Bill,</p>
<p>If the javascript is part of an HTML file, you can generate the
Array data using <code>xsl:for-each</code> or a Velocity
<code>#foreach</code> statement. Cascade cannot publish a
<code>.js</code> file directly, so if you need to load the data
from the client side, I'd suggest publishing an XML file that you
load using AJAX.</p></div>Ross