I dont know if any of you work with scriptaculous drag+drop a lot, but I have a question that has stumped me for weeks and I am super frustrated!
I am trying to fill “containment” with a JS array, but can’t get it to work. I have a JS array of IDs (I can make it an array of objects if need be):
var contArray = new Array();
contArray.push(‘DESKTOP’);
And I am setting it like this:
containment: contArray,
No dice…
I know the syntax is:
containment: [“item1”, “item2”, “item3”],
But I cant find a way to make that dynamic.
Any ideas? Thanks in advance!
(Also, containment only works for direct children correct? Not for all children and grandchildren etc, right?)