Displaying 20 results from an estimated 3000 matches similar to: "dragging and dropping with scriptaculous"
2005 Aug 18
0
Possible bug with scriptaculous dragdrop.js
Hi all.
I think the following code in dragdrop.js
fire: function(event, element) {
if(!this.last_active) return;
Position.prepare();
if (this.isAffected(Event.pointerX(event), Event.pointerY(event),
element, this.last_active))
if (this.last_active.onDrop)
this.last_active.onDrop(element, this.last_active);
}
should be changed to
fire: function(event,
2005 Jul 18
2
scriptaculous dragdrop.js empty list problem
Hi,
I''ve just been having a look at the scriptaculous drag-n-drop library, which
looks exceedingly good. I''m running across a show-stopper here, though -
something that''s cropping up in both the online demos and my own test scripts. If
I set up two lists so that I can drag items between them, then if either list
becomes empty, I can''t drag elements back into
2006 Feb 04
3
helping with scriptaculous/Thomas Fuchs MIA?
Hi,
In the last few days I''ve been working a lot on rewriting the
dragdrop.js code. I''ve made changes for what I think is stronger
object-oriented design and made more parallels between how Droppbables
and Draggables are coded and instantiated. I have multiple selection
and dragging of draggables working and droppables can accept multiple
draggables in one drop. There are some
2006 Feb 07
2
Thomas Fuchs? Helping with Scriptaculous
Hi,
I''ve been doing a lot of rewriting of dragdrop.js. I''ve covered at
least eight open tickets, made multiple selection of draggables,
droppables can accept multiple items at a time, added 21
consistently-named callbacks and have reorganized the code. I''m
working on adding more things to Sortable now. I''m no JavaScript
expert, this is my first project, and I
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(
2008 Mar 23
3
Nested Droppable divs -- drag & drop
I am having trouble with scriptaculous'' drag & drop here. I have a div
that''s droppable, and two divs contained within that first div, each
of which are also droppable. The containing (outer) div seems to grab
all drops. Even though I defined the inner ones as "greedy" which is
supposed to mean that draggables don''t propagate through.
I read elsewhere that
2006 Aug 25
5
Dragging between DIVs with Prototype/script.aculo.us
Hi,
I''m fairly new to script.aculo.us, so hopefully this is the right place
to ask this question. I have the following situation (pseudo-code):
<div>
<Droppable 1>
<Droppable 2>
</div>
<div (scrollable)>
<Draggable 1>
<Draggable 2>
...
</div>
Basically, my Draggables are inside a scrollable <div> element (the
interface
2005 Jul 18
1
fix for scriptaculous dragdrop.js empty list problem
Hi Thomas,
Here''s a fix for the problem that I raised this morning, turned out to be fairly
simple in the end (after many false starts and thrashing about - thank goodness
for Venkman!)
First, in Sortable.create(), I register the parent element (the UL tag or
whatever), and add an extra property to it to mark it as the parent of the list
in question:
for (var i = 0; i <
2005 Jul 20
0
script.aculo.us 1.1 beta 1 ready
Get it here: http://script.aculo.us/downloads
Short take on what''s new:
-> Autocompletion took a notch up with incremental and local (js
array) functionality
-> Capability to remove draggables/droppables and redeclare sortables
-> Effect.ScrollTo
-> Fix memory leaks in IE and Gecko
-> Make some 3rd-party js libraries comaptible, namely IE7.js
-> Various tweaks and
2007 Jul 26
1
Scroll Page While Dragging 'draggable_element'
Hi - I posted this on another list, but received no response, so I''m
trying this one. My apologies to those who have seen this question
twice.
I have two columns, one of draggable elements, the other of
droppable elements. These are used to add items to a particular
collection. (Story :habtm ''Assets'')
Column 1 (Assets) Column 2 (Stories)
==============
2005 Dec 05
3
Multi-level drag and drop in scriptaculous?
I am trying to create a screen like Google''s personalized home pages or
start.com, i.e., with draggable sections, with the extra feature that
the child items under the parent headings could be dragged and dropped
from one parent heading to another.
I have set up nested droppable sortables (dropOnEmpty=true) but the
behavior is very inconsistent, i.e, parents do not become droppable
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
Hello community,
I am a fairly new RoR programmer and I need some help with Scriptaculous
Drag and Drop:
So I have
<%= draggable_element(@div_id, :revert => "failure", :snap => 5) -%>
and a droppable:
<%= drop_receiving_element(@team_div_id, :with => "''player='' +
(element.id)+ ''&position='' + #{draft_position}"
2005 Dec 03
0
dragdrop patch that enables dragging from and to divs with overflow:scroll
Hi all, this is a patch for 1.5_rc5
I noticed that I was not able to drag stuff out of scrolling divs. When I tried to drag it out, the draggable would remain in that div and the scrollbars would adapt to the bigger content of the div.
This patch extends draggable with an option :tofront. When it is set to true, the draggable will be moved to the document body while keeping its position on the
2006 Mar 23
4
Implementing nested drag and drop using scriptaculous
Hi.
I have gone through the scriptaculous wiki. I am trying to implement nested drag and drop but not able to do this.
The situation is like this.
_____________________________
| abc | => Box1Line1
| cde | => Box1Line2
| efg | => Box1Line3
| h | => Box1Line4
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
2005 Jun 23
0
dragdrop library
Thomas,
Special thanks for the dragdrop library. I consider your javascript
abilities quite superior to my own, in fact I''m just setting out on a quest
to master javascript, I found your library the other night and started
hacking away on my app. I replaced a dom-drag.js library I was using before
with yours since it integrated with prototype better, and appears to be
better coded.
2005 Nov 18
0
Passing "accept" option through a Sortable
Hi All,
I''m attempting to tweak Scriptaculous 1.5R4 to provide the ability to
pass the "accept" option through the Sortable.create(...) call to the
enclosed Droppable(s). I''m far from a JavaScript expert
(Scriptaculous & AJAX have convinced me to finally start learning),
so I''m kinda fumbling in the dark here.
Thus far I''ve made two
2006 Feb 14
0
Another draggable/droppable performance booster
This one is as much for Thomas as for the rest of the list (might be a
good one for the official build)... I made a change to the dragdrop.js
file that significantly improves overall performance of dragging when
there are more than one (or many more) droppables on the page.
I modified the Draggables.updateDrag method, and added another method
below it, and then in Draggable.updateDrag I
2005 Sep 08
1
Draggables - without moving the original element
I''m needing to implement some drag and drop in a way that leaves the
clicked element where it is, and carries a new element over to my
Droppable. Its analogous to a shopping cart: I want to drag a
representation of an item into my cart, but leave the original item
intact in the main product list. Does anyone have any tips on how to
approach this? Its seems to use
2007 Jun 14
2
A more fancy autocomplete using scriptaculous and ajax
I want to create an autocomplete text field that when you type in
(some
of) a users name, it pops up the portrait image associated to that
user
on the left hand side, which can then be dragged away in to a
Sortable.Droppable element adding that member to your team...
I can get the results to display, but not where I want them. They are
always in a list below the textbox.
1) possible?
2) Do the