Login Register

drop

Drag and Drop , dynamicly created new iteams, t is undefined

Hello,

Im trying to drag & drop elements dynamically added, but havent been having much sucess,the new elements added by "add item" dont drag and drop properly, could someone please tell me what is wrong with this code?

item = 5;

function additem() {

        document.getElementById("draglist").innerHTML += '<ul class="dojoDndItem" id="' + item + '"><li class="taskdrag dojoDndHandle" id="drag-' + item + '" ><small>drag ' + item + '</small></li></ul>';
        item = item + 1;
}

Drag and Drop , dynamicly created new iteams, t is undefined

Hello,

Im trying to drag & drop elements dynamically added, but havent been having much sucess,the new elements added by "add item" dont drag and drop properly, could someone please tell me what is wrong with this code?

item = 5;

function additem() {

        document.getElementById("draglist").innerHTML += '<ul class="dojoDndItem" id="' + item + '"><li class="taskdrag dojoDndHandle" id="drag-' + item + '" ><small>drag ' + item + '</small></li></ul>';
        item = item + 1;
}

Drag & Drop - update the value of input elements

Hi,

i have some problems with dojo.dnd. I want to implement the Drag & Drop Funtion with JavaScript, so that the dnd items will be generated dynamicly and i can change the positions of them in the container. And now the problem:

when i include some input elements into the items, change the values and move the items, they wont be updated at the avatar. Why? Can someone help me?

Thanks

The Code

index.html

First Widget
 

Syndicate content