Displaying 20 results from an estimated 700 matches similar to: "Scriptaculous - extending draggable via sortable"
2006 Jun 14
5
Sortable Tree - Stoping Event dispatch ?
Hi,
I''m trying to play with sortable tree and have two issues:
I have an AJAX Tree looking like:
<ul class=''TreeCat'' id=''work''>
<li class=''open''>
<img src=''s.gif'' class=''node'' onclick="Ajax.Tree.toggle(event,this);"/>
<a
2008 Jul 01
0
Draggable item absolutely positioned inside relative div
Actually, it''s a bit more complicated than that...
I have a div (we''ll call it the "portal") of a fixed size and absolute
positioning, with an overflow: scroll set. Inside, I have a container
div with relative positioning. This inner container has a series of
absolutely-positioned elements which are draggable with a vertical
constraint. The height of the container is
2006 Apr 06
1
RE: Drag and drop events. Or: How I learned to takeover the world.
You should open up dragdrop.js in the scriptaculous directory and take a
look at the interface for Draggables/Draggable. There is an event for
dragStart, dragging, and dragEnd (not by those exact names but you
should see them)... sorry I can''t offer more help than just pointing you
in the right direction... very busy. Good luck, nice start!
The information transmitted in this
2006 Jan 17
0
Draggables notifier
I have a request for the keeper of the scripts (Thomas?)...
In the Draggables var, I think the onStart and onEnd notify events
should be named more descriptively. For instance onDragStart and
onDragEnd.
This would alleviate a possible place for namespace collisions where
other custom classes might use a similar notify schema (although I would
adamantly recommend all such classes also use
2006 Jun 14
5
generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
Hi folks.
I''m working on a project where I need some drag and drop, but I need to
implement what happens in a very different way, so I''m creating my own class
for it. I don''t want to reinvent the wheel and redo Thomas'' excellent
drag/drop functionality, nor do I want to copy/paste his code over into mine.
So, I was wondering, has anyone tried to extract
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
2006 Jan 13
1
Capturing the position of a draggable element
I would like to capture the position of a draggable element after it''s
being dragged, but I am running into problem using several options, such
as "change", "revert" and "onEnd". My callback handler would only fire
when the page loads, and not when the element is dragged. How can I make
this happen?
<html>
<head>
<script
2006 May 28
10
Drag''n''Drop out of overflow:auto containers
Cheers,
I have some elements inside a div with overflow:auto. When I trie to
drag them outside of the div, the div starts to scroll. Is there a way
to stop this behaviour for drag and drop?
I thought of maybe using callback to disable the overflow and restoring
it againg after the drop. Did someone implemented something like this?
Thanks,
Jonathan
--
Jonathan Weiss
2008 Jun 19
2
Capturing draggable revert
I''ve seen a few posts about this, but no answers.
I would like to be able to call a function when a draggable revert
occurs. What I''m trying to do is replace a photo with an icon on drag
(which I''ve accomplished), but I need to swap it back if the revert
fires.
I really, really wish there were an onRevert() option, but there
isn''t, so I guess I''ll
2006 Dec 19
3
IE and Draggable: Image loading
Hi everyone,
I''m having a problem dragging a div with a background image using the
draggable library. What happens is that, while I''m dragging it, it
reloads the background image with each pixel movement (like an ''onDrag''
function). Has anyone else experienced this, or does anyone know how
to fix it? Thanks in advance.
Cheers,
Justin
2006 Feb 28
0
Question abour Draggables & Droppables - my code example
hi i think my example is very simple and straightforward so i''m not sure if
it meets your needs (change revert:true to revert:false from a draggable
after I drop it on a droppable so it doesn''t return to its original place.)
i did this
# 2 divs created here
<script language="javascript">
new Draggable(''drag'', {revert: false});
2006 Jan 30
0
Adding a handler for a pre-existing draggable
Is it possible to add a handler for an event to a draggable that already
exists? That is, if I have in a Widget class:
var Widget = Class.create();
Widget.prototype = {
...
this.draggable = new Draggable(this.element);
...
}
and I create several Widgets, then later, I want to add a handler for the
draggable.onDrag function, what''s the appropriate method to do so?
Thanks in advance!
2006 Oct 27
16
Returning coordinates of a draggable?
How difficult would it be to get the x and y coordinates returned of a
draggable?
--~--~---------~--~----~------------~-------~--~----~
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
To unsubscribe from this group, send email to
2006 Jan 30
0
Draggable with auto-scroll
Thomas, I''m mostly writing this to you. A couple weeks ago I grabbed the
latest SVN version of dragdrop.js because I needed the auto-scroll
functionality. I just fixed something in that script that wasn''t working
correctly and thought you might want to hear about it. You may have
already caught it since I grabbed the script but here it is anyway.
In the updateDrag() function
2008 Feb 05
0
scriptaculous drag and drop question
I have been using the scriptaculous library to build a drag and drop
feature for the application I am working on. I wanted to add
additional features and I was wondering how I would go about it using
scriptaculous library I have been searching around the web and I have
not found anything helpful.
I wanted to add a drag proxy so that when user drags on a div I wanted
the build the a new div with a
2006 Feb 27
11
Disabling anchor clicking in a draggable
Hey guys
I have an interesting problem - I have some draggable elements (sortable
actually), with links (<A>) inside them. I want the user to be able to
click on the link, however if the user drags the element I don''t want
the link to get fired. Can anyone think of a way to do this? It only
needs to work in Firefox.
Cheers
-Rob
2010 Jun 15
0
Draggable Marker - "dragend" event - Example?
Hi everyone,
I have been developing a site using mapstraction over at dojolist.org
I currently geocode an address to add a marker on the map when creating
a new dojo. What I have been trying to do is make it so that I can drag
the marker and then have the lat/long fields updated from the map.
I have not been able to find an example of this on the mapstraction
site, does someone have an example I
2005 Oct 14
6
Draggables onDragStart
Skipped content of type multipart/alternative-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 1027 bytes
Desc: image001.gif
Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20051014/b3c26edf/attachment.gif
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
2005 Oct 26
0
Revert Effects Option??
Hi All,
I''m trying to get rid of the appearance of flying objects on revert. I
was able to do this by setting the duration to 0 in the Draggable
constructor. I''m not at all excited about this solution. Is there
already some way to set the parameters of reverteffect in the options
that I''m not seeing??
> reverteffect: function(element, top_offset, left_offset) {