I have an array of div elements that apparently is too long, but I need all the divs for my dragNdrop application. Could someone suggest a work around?
The dragNdrop initialization is...
var elements=['div1','div2','div3',.....,'div400']; //Doesn't work properly
var elements=['div1','div2','div3',.....,'div200']; //Works properly
window.onload = function() {
elements.each(
function(item) {
new Draggable(item,{revert:true,ghosting:true});
}
);
Droppables.add(DropDiv,{
hoverclass: 'DropHover',
onDrop: doSomething
}
);
A little more info...
var elements=
is an expansion returned from php. It can be broken up if necessary, but I'd sure like to keep the array in one piece. If not I'll need a little help putting it all together.
Thanks for the help-
UncleJoe