| | |
Creating a source/target in Dojo
Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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>
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>
![]() |
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: javascript undefined
- Next Thread: Is it possible to transfer value javascript to ajax??
Views: 801 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxexample ajaxhelp ajaxjspservlets array automatically autoplay beta blackjack boarder box captcha card cart codes column css date debugger decimal design developer dom download element embed enter error events firefox flash focus form frameworks gears getselection google gwt hiddenvalue hint html htmlform ie7 iframe index java javascript javascripthelp2020 javascripts jawascriptruntimeerror jquery jsp libcurl listbox maps marquee masterpage media menu microsoft mimic mp4 offline onerror onmouseover parameters paypal php player position post problem programming prototype rating redirect safari scale scriptlets search security select size software sources starrating toggle tweet twitter unicode validation variables w3c web webkit webservice window windowofwords xml





