similar to: Drag and Drop. Can an element be both?

Displaying 20 results from an estimated 100000 matches similar to: "Drag and Drop. Can an element be both?"

2006 Feb 20
0
element.remove when element being dragged
Hi I''ve a class which creates a lot of droppable icons (folders) and another class that creates some draggable file icons. When I drop one of the files in the folders I want to remove the file icon from the screen. However, doing Element.remove(droppedElement); results in a repeated js error "element has no properties" in protoype line 1588. This continues to occur until I
2005 Oct 11
8
Drag & Drop probs
Hi, I''m just trying out the possibilities of script.aculo.us / prototype having two problems... I have a draggable element with revert:false-property and two dropzones. (The draggables are in a <td> and the dropzones are <div>s if that is important.) 1. I want the draggable element to snap back to its original position when it gets dropped anywhere out of a dropzone. 2.
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable item and then detect the coordinates where it is dropped. So my first approach was to just use the draggable_element with :revert => false, like so: <%= draggable_element "my_element", :revert => false %> That works great and lets me drag stuff all over the place. In the scriptaculous
2005 Jul 12
0
Drag and drop questions
Hi, Thomas and David, thanks for updating script.aculo.us to be compatible with IE7 and other Javascript libraries. I successfully integrated the libraries with my project, OpenRecord. I have a few drag and drop questions: 1) For my drag and drop event, I would like to the drop to do an "add" if the option or alt key is pressed, and do a "move" otherwise. Can I get
2006 Jan 20
3
disabling drag''n''drop features on some areas
Hi, I have implemented the drag and drop feature to move around some divs, but I have a small side effect i am trying to clear: When the draggable div contains links, and if the user grab the div on the link, the drag is done but the link is also visited, leading to unwanted issues. What I''ve tried to do is to look for all ''a'' tags in the draggable elements in order
2008 May 30
1
Drag and Drop with scriptaculous
Hello, I''m making my first steps with prototype and scriptaculous. I''m playing around with drag and drop. What I try to do: I have some Draggables and some Droppables. You can drag each Draggables to each Droppables. When I drop a Draggables I want to center the Draggables inside the Droppable. And here I get my first problems:-( I use this code: Droppables.add(
2006 Mar 22
0
Support for window scrolling for drag and drop
Today has seen the incorporation of patch #3921 into the script.aculo.us trunk, which allows for automatic scrolling of the page when dragging a draggable element. Thanks to rdmiller for submitting the patch! To use it, you basically just do: new Draggable(''blah'',{scroll:window}); Anyone: Please give it good testing and report any problems you might have. -Thomas
2005 Jul 20
3
examples of drag n drop
Sorry if this sounds cynical, ( i do love script.aculo.us scripts ) , but I am wondering if people know of some good real world examples of uses of drag n drop and sortable lists. such a cute script will likely be *ab*used as much as it is used. obviously the point here is to use script.aculo.us to improve the user interface rather than just have some k00l eFX. e.g. the drag n drop instantly
2005 Jul 01
1
drag problem
Hi - my first post here so first of all can I say how impressed I am with this library Now to my first question - I''m simply trying to make a div draggable, here''s my test page: http://localhost:85/folio11.co.uk/js_tech_demo/scriptalicious_test.html what seems to be happening is that the first drag works fine, but on subsequent drags the div''s initial coordinates
2005 Sep 14
4
How to drag/drop visitable anchors ?
Hi ! I have the following: <li id="photo_<%= @photo.id %>" class="photo"> <%= link_to(image_tag(url_for_file_column(:photo, :picture)), {:action => ''photo'', :id => @photo}, {:title => @photo.description}) %> </li> <script type="text/javascript" language="JavaScript"><!--
2005 Oct 17
1
Passing a draggable element''s attributes to controller on drop
I''ve browsed the list and noticed a few similar questions in the archive about maintaining the position of a draggable element after dropping it ... but I couldn''t find any conclusion about the problem. Has there been anyone found or implemented a solution? Or does prototype still need to be extended to allow the persistence of the draggable object''s position?
2005 Jul 07
0
How to make drag & drop effect like my msn''s ?
Hi, I found that Sortable is the most similar solution, but it seems draggables cannot be dragged back to the original container if all draggables were dragged out the container. And I have to drag & drop a draggable element overlap another one. -- Regards. Yufan -------------- next part -------------- An HTML attachment was scrubbed... URL:
2008 May 29
4
Drag/Drop finding droppable's properties?
Hi All, I am trying to develop a dynamic form creator application, whereby we can drag objects from a "palette" and drop them onto a "form" to build the design of our form. To achieve this, when I have dragged the object, and dropped it onto the "form" area, I want to get the position of where the object was dropped. I have a droppable area:
2006 Apr 25
1
How to drag & drop within a DIV?
Suppose some elements created using scriptaculous, and now want to add drag&drop characteristic to them,but the draggable elements can be dragged with the scope of whole browser,how to limit the draggable area within some DIV,for example the div that the elements lie in. Thanks Charlie -- Posted via http://www.ruby-forum.com/.
2007 Sep 28
1
drag and drop reset
I have a draggable, and I place it on a droppable. How do I make the draggable go back to its original postion? Thanks. -Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
2005 Dec 27
2
Drag and drop problem if Droppable zones overlap
Hello, The question is related to Droppables and Draggable. I''m creating a splitter component with a DIV that acts as the splitter and 2 DIV zones that are the splitted zone. To do so I use the Droppables and Draggable in conjunction. The splitter DIV is a Draggable component and I define 2 Droppable zones for the splitter DIV (Zone A and B on each side of the splitter) It works fine
2006 Apr 06
3
Drag and drop events. Or: How I learned to take over the world.
Hey all, First, I just want to say thanks to all of you who read, and email here frequently. So "Thanks". Second, I have a little pet project. This one has not timelines, and is mainly meant for my own personal growth and javascript goodness. It is a drag and drop game, and it may not be 100% possible to do everything I want with it. But that has not stopped me from
2008 May 02
2
making an element draggable after it's been dropped in a drop zone
Hi, I have this code which allows me to drop a draggable item in to a droppable zone. It works fine but what i want to happen is once the item ( droppable) has been dropped in to the drop zone (dropp) for the item to be draggable again. At the moment once ive dropped the item in the drop zone i can''t make it draggable again.....even if i repeat this line: new
2005 Sep 02
0
altering revert effect based on if dropped on given droppable?
Hi All Does any one know how to specify a different reverteffect on a draggable if its successfully dropped on a given droppable? What I need to do is when an image is dragged onto a droppable image I want the drop image to be replaced with the drag image, the drag image to fade out and then reappear where it was at the start of the drag, as opposed to the draggable scrolling across the page
2006 Jun 18
0
Very cool scriptaculous table drag and drop stopped working on new version
Using older versions of prototype.js (1.4.0_rc2) and scriptaculous (1.5._rc4), I had a master table containg other tables (sections), each of which had rows. Using tbody''s as containers, I could drag the section tables up and down over the other section tables AND drag the rows in a section table up and down within that table or into the rows of the other section tables, all very