foreach not providing ECMA variable?
Posted: Mon Sep 24, 2007 12:45 pm
I've got a nodeList I extract from a data element.
I'd like to print out the data elements, but when I attempt to do so, the foreach executes but the ECMAscript compiler complains:
As far as I can tell, foreach ought to fail outright, or the items in nodeList ought to be printed in some for or another. What I get instead is
I'd like to print out the data elements, but when I attempt to do so, the foreach executes but the ECMAscript compiler complains:
Code: Select all
<foreach array="nodeList" item="foo">
<log expr="':::::::LOG::::::::' + foo"/>
</foreach>
Code: Select all
VXI::foreach_element()
:::::::LOG::::::::
VXI::queue_prompts()
errmsg ReferenceError: foo is not defined line 1 linetxt tokentxt