Hello.

I've got a page with a <div> that is a dojo.dnd.source and another <div> that is a dojo.dnd.target. I am able to drag objects from the source to the target successfully, but I would like to be able to drag them back again as well.

Any advice on this?

<div dojoType="dojo.dnd.Source" jsId="c1" class="source">
<img src="app_1.png" class="dojoDndItem" dndType="blue"/>
<br>

<img src="app_2.png" class="dojoDndItem" dndType="red"/>
</div>

<div dojoType="dojo.dnd.Target" jsId="c2" class="target" accept="red,blue">
</div>

Make them both dojo.dnd.Source objects, and give them both the attribute accept="red,blue".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.