How can I use a dmx-repeat in javascript?

A part of my website requires me to use the write() method of writing javascript to html. This works fine when extracting data from App Connect with dmx.parse.

eg.

var check_id = dmx.parse('serverconnect1.data.getResult.id');

which I can use like this:

document.write("<div dmx-bind:id="' + check_id + '"></div>");

However, I can’t seem to use the same procedure to create a functioning repeater.

eg.

var repeater = dmx.parse('serverconnect1.data.getResult');

used something like this:

document.write("<div dmx-repeat:repeat_position="' + repeater + '">Repeat Content Goes Here</div>");

Does anyone know how to achieve this?

Community Page
Last updated: