Displaying 20 results from an estimated 700 matches similar to: "generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?"
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
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
2006 Jan 16
8
resizable window/div - some help needed
Hello
I have been working on a little window dialog script - please see
<http://net4visions.com/dev/window/window.htm>
http://net4visions.com/dev/window/window.htm for a preview. the necessary
files can be downloaded here:
<http://net4visions.com/dev/window/window.zip>
http://net4visions.com/dev/window/window.zip .I''ve included just the basics
- please change the path in
2006 Mar 29
3
droppables
I am not sure how many of you are using draggables/droppables but I
thought I would do some experimentation and try and learn how to use
them on my own.
Well, I have draggables, and I have droppables.
I do have one question for now.
The droppable onDrop event seems to pass in 2 objects, the dropped
object, and the container the object was dropped on. My question is
this, can I figure
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
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 Feb 01
1
Sortable onUpdate problem
Hi,
I have two sortables with different options (but same tags. just
''li''). When I drag an item from sortable1 to sortable2 I want it to
gain the options that the sortable2 items have.
I''ve tried all day to understand how Draggables and their observers
are destroyed but I keep gettting buggy behavior. Part of the problem
is the draggable and the draggableObserver are
2006 Jun 12
5
scriptaculous & sortables/draggables scrolling?
Re,
Would anyone happen to know how to make sortable/draggable scroll down
the page while moving the object if the page happens to be larger than
the screen size? These functions seem to work only within the visible
working space.
Right now I have workaround whereby I have an omnipresent DIV on the
screen to which I drop an element, then scroll down in the browser to
a certain point, and then
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
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
2005 Aug 12
0
OnDrag callback. Is there such a thing?
I''ve asked this question before but posted it at the
wrong place. Anyways, I was trying to find out if
there is an OnDrag callback that I can use in
DragDrop.js; something that is called as soon as the
draggable is moved from its position, similar to the
startDrag, cancelDrag and endDrag callbacks available
in rico.js (www.openrico.org). If there is such a
callback, could you please show
2006 Jan 25
8
RE: Make all LI items draggable
If you want the whole list draggable as one entity, you make one
draggable. If you want each item draggable on their own, you need to
make each one a new draggable.
-----Original Message-----
From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of
2006 Apr 30
1
Draggable - how start action on start dragging and end action on droppping
Hi all. I have got situation that I made element draggable - and
when element is dragged I want to start some action (e.g. shown
AJAX indicator, and change one of CSS class in dragging element).
What is the best way to achieve this? I search source code of the
Draggable and I saw that there is 2 method: Draggable.initDrag
and Draggable.endDrag so it looks like in initDrag method i
should
2006 Apr 25
12
RE: Element.scrollTo duration isn''t working
I thought the duration parameter was only used with Effect functions,
but I could be wrong.
Greg
> -----Original Message-----
> From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
[mailto:rails-spinoffs-
> bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Joe Hudson
> Sent: Tuesday, April 25, 2006 8:37 AM
> To:
2006 Feb 18
10
Updated: window dialog script
Dialog script has been update. A demo can be seen here:
http://net4visions.com/dev/dialog/dialog.htm .
Please see changelog for changes.
The dialog script can be downloaded from here:
http://www.net4visions.com/dev/downloads/dialog.zip .
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 May 25
7
prototype-ish subclassing
when using prototype and Class.create(), what''s the preferred method of
creating a subclass?
say I have a real simple class:
var Testing = Class.create();
Object.extend(Testing.prototype, {
initialize: function() {
...
},
...
});
would I subclass it as so?
var SubClass = Class.create();
Object.extend(Object.extend(SubCLass.prototype, Testing.prototype), {
...
2006 Apr 24
5
merging one array into another
Is there no better way to merge one array into another than iterating over the
array you wish to append with each() and push()ing the elements on to the
other array?
Here''s what I mean:
var arr1 = [1, 2, 3, 4, 5];
var arr2 = [''a'', ''b'', ''c''];
$A(arr2).each(function(el) { arr1.push(el) });
Is there no better way to do it than this?
2006 May 01
2
[prototype] Selector class fails on selector strings with spaces
I just ran across this bug when trying to re-create Ben Nolan''s behaviour.js
with prototype and was wondering if anyone had fixed it before I went
re-inventing the wheel :)
Thanks!
-Jeremy
--
Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
http://ipaction.org/ -- defend your rights to fair use
_______________________________________________
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and
the div elements that are being dragged have a <a href> in them with an
onClick handler that opens a new window with a preview. Is there a way to
keep that onCLick from firing when a sortable is dropped?
Sam D
_______________________________________________
Rails-spinoffs mailing list
2005 Jul 25
5
dragdrop.js: drop from sortable
I have a Sortable that''s working like a charm, but now I would like to
be able to drop objects from that Sortable onto a Droppable that''s not
part of my Sortable.
I just did a small test page where it didn''t work, so my first question
has to be "is this supposed to work?", before I dig too deep into it.
"accept" for the droppable is set to the