Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <div id="input_box">
  2. <input type="text" class="my_input_box_style" />
  3. </div>
  4.  
  5. var dndSource = new dojo.dnd.AutoSource(dojo.byId("input_box"), {
  6. singular: true,
  7. copyOnly: true,
  8. selfCopy: false,
  9. selfAccept: false,
  10. accept: false
  11. });
  12.  
  13. if(dndSource) {
  14. dojo.connect(dndSource, "onDrop", null, my_dnd_method, true);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement