Hi, I am trying dynamically push values from a Page Control into some inline JavaScript in a .ss Template as such:
<% control MyControl %>
<script>my_javascript_array.push($MyControlValue)</script>
<% end_control %>
The JavaScript that gets outputted to HTML is:
<script>my_javascript_array.push()</script>
That is, all values come out blank. I know this control has data because if I remove the script tags within the control block the values appear in the HTML fine.
Is what I am trying to do possible?? If so, what am I doing wrong?