The largest Interview Solution Library on the web

« Previous | 1 | 2 | 3 | Next »
Drag and Drop: This is a technique of dragging an item. Click an object or specific item that have to be dragged and dropped, you hold down the mouse button and drag the object to the suitable destination.
<title>Dojo Drag and Drop Example</title>
<script type="text/javascript" src="dojo.js" djConfig="parseOnLoad: true">
<script type="text/javascript">
<h1>Drag and Drop</h1>
<table border="1" cellpadding="0" cellspacing="0">
<td valign="top">
<!-- Source -->
<div dojoType="dojo.dnd.Source" jsId="sourceData" class="source"><b style="background-color:#999999 ">Source Data</b><div class="dojoDndItem" dndType="vinod"><div>Vijay</div></div><div class="dojoDndItem" dndType="suman"><div>Suman</div></div><div class="dojoDndItem" dndType="amar"><div>Amar</div></div><div class="dojoDndItem" dndType="ravi"><div>Ravi</div></div><div class="dojoDndItem" dndType="aman"><div>Aman</div></div><div class="dojoDndItem" dndType="deepak"><div><img src="1.jpg" /></div></div><div class="dojoDndItem" dndType="deepak"><div><img src="2.jpg" /></div>
</div></div></td><td valign="top"><!-- Target --><div dojoType="dojo.dnd.Target" jsId="targetData" class="target"accept="vijay,suman,amar,ravi,aman,deepak">
<b style="background-color:#999999; ">Target Data</b></div>
« Previous | 1 | 2 | 3 | Next »

copyright © 2014 - all rights riserved by