Displaying 20 results from an estimated 1000 matches similar to: "Get id of object being dragged"
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});
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 Jan 11
3
sortables callbacks
i know someone just recently asked about queueing ajax requests, my
question is similar in the regards that i don''t want my application to
send multiple requests. i have 2 sortabbles lists left, and right. when
i move an item from left to the right the onUpdate callback will send 2
ajax requests. one for each sortables. however. i want it to serialize
and send back the results from
2006 Feb 20
0
element.remove when element being dragged
Hi
I''ve a class which creates a lot of droppable icons (folders) and
another class that creates some draggable file icons.
When I drop one of the files in the folders I want to remove the file
icon from the screen. However, doing
Element.remove(droppedElement); results in a repeated js error "element
has no properties" in protoype line 1588. This continues to occur until
I
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 <
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 Jul 15
0
Drag/Drop with Image Maps
Hi all,
Is it possible to use HTML area objects from an image map as
droppables for a drag/drop interface? I want to get a different
response depending on which part of an image I drop a draggable div
object on. The context is creating an incident report form where
injuries can be dragged onto a body sketch. I''ve tried this using the
code below. However, the droppable is always
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 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
2006 Jan 11
3
divider id of container
Hi there, i need to drag an draggable element to an child div node inside an
another div container, but i create the child node dynamicly with ids like ''
div_ + i '' where ''i'' is a incremental variable, thats the problem because i
need get the id of this child nodes to manipulate it, somebody knows how if
i drag the element to that child node i can get the id of
2005 Dec 30
4
AJAX Drag and Drop Detecting Drop Coordinates
This one''s kicking me in the *(&#^. All I want to do is create a draggable
item and then detect the coordinates where it is dropped. So my first
approach was to just use the draggable_element with :revert => false, like
so:
<%= draggable_element "my_element", :revert => false %>
That works great and lets me drag stuff all over the place. In the
scriptaculous
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
Hi all. I have specific situations - I use sortable on html list, and
after I move elements I want to do ajax reqeust to serwer with the id
of dragging element and id of the element that was droppable. How to do
it? which function in Sortable class i have to overrider or modify? i
try to modife onhover method in sortable and put a ajaxRequest call
before methods
dropon.parentNode.insertBefore
2005 Sep 02
0
altering revert effect based on if dropped on given droppable?
Hi All
Does any one know how to specify a different reverteffect on a
draggable if its successfully dropped on a given droppable?
What I need to do is when an image is dragged onto a droppable image I
want the drop image to be replaced with the drag image, the drag image
to fade out and then reappear where it was at the start of the drag, as
opposed to the draggable scrolling across the page
2006 Feb 24
3
New to Ajax
Hello,
I''m very new to ajax and was looking for advice on scriptaculous at their
website and they suggested i join your mailing list, I hope that was the
right thing to do, I haven''t installed ROR yet but i have downloaded the
needed one-click installer which i will setup sometime soon, until such time
i would like to work with scriptaculous in its native form in php files, the
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
2005 Aug 09
1
Droppable refuse to react
Im having problems with Droppables, and read that there are some
attributes on the element that must be inline. What are those?
I''ve tried to copy some of the code from the shop-demo, and my code
seems to have the exact same attributes and more.
The problem is that the droppable refuse to react whenever I attempt to
drop a draggable on it, the onDrop does''nt seem to trigger.
2006 Feb 22
4
Rails in Brisbane, Australia
Hi
Any Rails developers from Brisbane, Australia? Any companies from Brisbane
developing Rails applications?
--
Aneesha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060222/cce3b491/attachment.html
2007 Jan 25
0
performance problem with many droppables
Hi all,
starting from the drag''n''shop demo, I started to write an AJAX Scrabble
(TM) as my first script.aculo.us app. I have the 225 fields in a table
and then make them droppable using
var fields = document.getElementsByClassName(''field'');
for (var i = 0; i < fields.length; i++) {
Droppables.add(fields[i], {onDrop:addProduct})
}
Unfortunately,
2006 Mar 02
3
Hey How did they do that?
I''ve seen web apps where cells within a table column can be highlighted by
dragging over them. NumSum does this. Any ideas on how this is achieved?
When I try to select cells in a column by dragging over them the text within
rows gets selected as well.
Take Care
--
Aneesha
_______________________________________________
Rails-spinoffs mailing list
2006 May 30
4
Help with Shopping Cart example from Agile Web Development 2nd Edition
Hi
I get to about page 103 of the book and get an application error. Further
investigation reveals the following error in the dev log:
Mysql::Error: #42S22Unknown column ''id'' in ''where clause'': UPDATE sessions
SET `data` =