| | |
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: 803 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for JavaScript / DHTML / AJAX
acid2 ajax ajaxexample ajaxjspservlets array autoplay blackjack boarder browser captcha captchaformproblem cart close codes css date debugger decimal dependent design developer disablefirebug dom download element embed engine enter error events ext file firefox flash focus form frameworks game gears getselection google gxt hiddenvalue highlightedword hint html ie7 iframe index java javascript javascripthelp2020 javascripts jquery jsp libcurl listbox maps marquee masterpage media menu mp4 onerror onmouseoutdivproblem onmouseover parameters paypal pdf php player position post problem programming prototype rated rating redirect safari scale scriptlets scroll search security size software solutions sources starrating synchronous toggle tweet unicode variables w3c web webkit webservice window





