Note that there are some explanatory texts on larger screens.

plurals
  1. POSelectable & Draggable jQuery to make a Windows Explorer-like window
    primarykey
    data
    text
    <p>I'm now facing another thing that I can't figure out how to do.</p> <p>I'm new to jQuery and I'm trying to make an icon draggable and when you drop it in the folder(.folder div) It will be moved there.</p> <ol> <li>Drag the icon (I know how to drag it but it is only visible in the parent div and not on the entire webpage.)</li> <li>Drop on a folder on the #navbar (at the left) (Again, I can't figure out how to make it droppable over a specific div)</li> <li>Remove the div moved on the original content and realign all other div</li> <li>Call a php page to move the file associated with this div to the selected directory</li> </ol> <p>div on the center of the page (I want them draggable) are icons, when you drag them and then drop them on a folder on the left, it will be moved there.</p> <p>Here you can see what it looks like (Better using Firefox) : <a href="http://narks.xtreemhost.com/" rel="nofollow noreferrer">http://narks.xtreemhost.com/</a></p> <p>This is only a test page to show you. Anyone can help me with that please?</p> <p>To know the structure of the webpage, see <a href="https://stackoverflow.com/questions/4451286/windows-7-explorer-in-css-layout">Windows 7 explorer in CSS layout</a> (Thanks again to Ivan Ivanić for his precious help1)</p> <p><strong>EDIT jQuery Drag &amp; Drop :</strong></p> <pre><code>$( "div.explorer_icon" ).draggable({ opacity: 0.50, revert: true, distance: 30, zIndex: 9999, scroll: false, appendTo: 'body', containment: 'window', helper: 'clone' }); $( "#navbar div.item_list" ).droppable({ accept: '.explorer_icon', hoverClass: 'item_list_hover', tolerance: 'pointer', drop: function(event, ui) { } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload