Question
Convert coldfusion variable to javascript variables
Hy everybody.
I've tried for this the following:
var #toScript(array[1], "x")#;
and it's working fine.
I've tried to do the following:
var #toScript(cars[1], "x[1]")#;
and it's not working. I want to generate about one hundred javascript variables dinamically, and put toScript inside a CF loop or JS for.
Any ideas?
Thanks.
