Displaying 20 results from an estimated 2000 matches similar to: "Draggable item absolutely positioned inside relative div"
2007 Feb 12
0
Scriptaculous - extending draggable via sortable
Hello,
I have created a Yahoo style Drag and Drop using Scriptaculous Drag
and Drop. I have hooked my custom functions to the Drag and Drop using
the following code:
new Draggable(element, {revert:true, ghosting:true, handle: handle,
onStart: CollectionDragDrop.dragStart, onEnd:
CollectionDragDrop.dragEnd,
onDrag: CollectionDragDrop.dragMove,
reverteffect:
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
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!
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 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 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
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});
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
Note that this does not fix gettext for app,
that will be done separately in another patch
as F10/F11 require different setups for that.
In the meantime gettext works if manually changed
in environment.rb to gettext_rails instead of
gettext/rails
Signed-off-by: Jason Guiditta <jason.guiditt at gmail.com>
---
src/app/controllers/application.rb | 200 --------
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 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 20
1
Simple draggable
I just download 1.6 and tried doing a simple draggable , but it doesn''t work.
Firefox console / evaluate :
Error: uncaught exception: [Exception... "Component returned failure
code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIWebNavigation.loadURI]"
nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame
:: chrome://global/content/viewSource.js ::
2005 Aug 24
4
scriptaculous: Draggable and table rows
I''m trying to add drag/drop for moving rows between two tables, and not
having much luck... I can get images to be drag-able OK so I know all
the script files are in the right place ;-) But no joy with table rows.
Is this a Draggable and/or Javascript/HTML limitation?
Here''s what I''m trying:
<html>
<head>
<script type="text/javascript"
2006 Apr 20
0
Sanity check of my Draggable code
Hi all
I''m just getting started with script.aculo.us, and prototype etc.
My first mini-project was to use Draggable to adjust the column widths
in a page. Here''s the code (which seems to work) and any feedback would
be appreciated - especially if I''m doing things the wrong way.
Here''s the code:
var colSpacer
function initPage() {
colSpacer = new
2005 Jul 06
1
BUG? Draggable''s handle implementation does not match the documents
Hi,
First thanks for your great scripts!
According to the documents:http://script.aculo.us/drag-and-drop
The Draggable''s option ''handle'' value is a string referencing a CSS class.
The first child/grandchild/etc.
element found within the element that has this CSS class will be used as the
handle.
However, in the source code file dragdrop.js line 250, is,
this.handle=
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
2006 Feb 09
3
Draggables and Droppable performance (tips)
Hi all. I have some performance tips to share. I had been having
problems with the overall performance of the drag/drop objects. This is
due largely to the fact that my project really pushes the limits
(potentially thousands of draggables and hundreds of droppables in the
document at a time, although that is the extreme case).
Something I discovered is that the performance of dragging goes WAY
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 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 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