Yes, I'm still using prototype :)

I have a list of thumbnails in a container, and a Sortable created for the 
container so I can reorder them. 

I also want to add a separate droppable outside the container div to accept 
imgs I want to trash.

I can't figure out how to get the thumb to drop onto the trash outside of 
the thumb container. With the code below, the image won't drop until it's 
release over the original "thumbs" div.

Anyone have any pointers?

HTML (erb):
<div id="thumbs">
  <% @thumbs.each do |thumb| %>
    <img class="crop_img" id="thumb_<>" 
 src="<%=thumb.filename%>" />
  <% end %>

<div id="crop_trash" style="display: block; 

<script type="text/javascript" >
      onUpdate: function(){
        new Ajax.Request('/the/url', 
                         {asynchronous: true,
                          evalScripts: true});
      only: 'crop_img',
      constraint: false,
      containment: ['thumbs','crop_trash'],
      tag: 'img'

        accept: 'crop_img',
        onDrop: function(drag){

You received this message because you are subscribed to the Google Groups 
"Prototype &" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to