Displaying 20 results from an estimated 1000 matches similar to: "Drag and drop events. Or: How I learned to take over the world."
2007 Apr 05
3
Trying to get drag and drop to revert when I want and stay at other times
Here''s the deal. I''m making an ajax-based chess game. It''s done but
there''s something I''d like changed. Right now, to move pieces, you
click on the piece you want and you click where you want the piece to
go. People expect that, but they also expect the ability to simply
drag and drop the piece. So I''ve been using the draggables and
droppables,
2005 Jul 28
3
chess
hi
I''m making a chess board app in Rails using the scriptaculous drag and drop
stuff.
A couple of questions, I am having trouble putting the chess pieces in the
correct
place - simply it seems that when i make somethign draggable it changes its
positioning
to relative - not so good for putting pieces on a board. Why is this ?
Also i can''t see an OnDrop callback in the API
2006 Apr 05
4
problem with drag and drop
Hello, I''m creating an application wich can be seen at
http://158.227.7.9/serious_serv/prueba_xml_test(31-3)/interfElemen/integMenuContextFileUpl.htm
The instructions for working with it are the following: with rigth-click you
can click "AƱadir una imagen" to load an image into the page, then you can
drag and drop it in the box with "aqui van las imagenes" into it.
2006 Mar 29
2
Drag/Drop and KeyPress
Hi!
is it possible to make a drag dependent on a KeyPress event? I couldn''t
find any information on that on the script.aculo.us website.
My scenario is the following:
I have a tree with several nodes (like windows explorer). Right now i
use Drag & Drop to move a node below a new parent.
Now i want to implement a copy mechanism which allows the user to copy a
node through Drag
2006 Feb 07
16
Notify JS updates, oh my
Hey all,
I just wanted to let you guys know that I updated my notify script.
I still need to package it for easy download (next on my task list)
but it does what I need it to do. Any thoughts, comments?
http://thinkof.net/notify/index.html
Also thanks to those of you who helped previously.
-Greg
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.
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 Feb 16
4
cancelling droppable if draggable dropped on different droppable
I''m writing a web app in which I have several ''windows'' in which the
user can perform given functionality.
So for example I have one window which manages images on a server (drag
an image into a folder and the file physically moved on the server via
ajax ) These images can also be dragged into another window to create a
slideshow.
My problem
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
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 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
2005 Jul 05
1
[PATCH] script.aculo.us drag-and-drop patch
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2618 bytes
Desc: not available
Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20050705/8b315d27/smime.bin
2006 Jan 09
6
drag and drop problem
I am working on a resource planning problem. I like to use a nice drag
and drop interface for that. E.g. have a box of persons and a box of
projects, now I would like to assign a persom to project by dragging it
from the available resources box to a recieving project box.
I have studied the amazing drag and drop shopping card code listed here
http://demo.script.aculo.us/shop
What I need to
2006 Apr 06
1
RE: Drag and drop events. Or: How I learned totakeover the world.
Oops... typos... Outlook stripped the newline from the 1st and 2nd code
lines... and in the last line it should be:
Draggables.addObserver(myDraggableObserver);
(I copied and pasted from my code and missed that 1 change)...
The information transmitted in this electronic mail is intended only for the
person or entity to which it is addressed and may contain confidential,
proprietary, and/or
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 Feb 26
14
Question abour Draggables & Droppables
Hi,
What I need to know is how to 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.
Something like:
[CODE]
<!-- Draggable image -->
<img alt="Product" id="item" src="icon.png">
<script type="text/javascript"> new
2005 Oct 25
2
Dragging to a textfield?
Hi All,
I''m trying to drag a copy of a string from a list into a text field so
that the original string stays in the list. I''m able to drag the item
and set the value of the text field onDrop. But the original text leaves
the list & with revert set to true it flies back to it''s original
position in the list. We''re trying to avoid the flying text.
What
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
2006 Jun 24
6
Few questions
I apologize if these questions are not relevant to Scriptaculous. I
just want to get a general idea if I can acomplish some or all of
these things with the framework, and then what (if any) I''ll need to
do outside just using javascript.
For now, I have 2 column layout. On the right I want a form palette
where form elements can be dragged to the left column. I have a form
inside the
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"><!--