Displaying 20 results from an estimated 2000 matches similar to: "Scroll Page While Dragging 'draggable_element'"
2010 May 03
0
Scriptaculous, snap draggable to droppable or revert
Hello community,
I am a fairly new RoR programmer and I need some help with Scriptaculous
Drag and Drop:
So I have
<%= draggable_element(@div_id, :revert => "failure", :snap => 5) -%>
and a droppable:
<%= drop_receiving_element(@team_div_id, :with => "''player='' +
(element.id)+ ''&position='' + #{draft_position}"
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 Jan 20
1
[protoype] Problem with Effects on draggable element if revert is true
hi,
I have a draggable element (cart-item) in a shopping cart
<%= draggable_element "item_#{product}_#{i}", :revert => true %>
When this element is dragged outside the cart into the "main_div", I want to
show a puff effect and remove the element. When it is dragged within the
cart, it should revert.
So i wrote this code for drop_receiving _element
<%=
2006 Feb 01
0
Using draggable_element doesnt work with update_element_function
Hi everyone,
I am writing a ruby on rails application, and making heavy use of AJAX calls
and evaluate_remote_response. In my remote responses I often have several
update_element_function calls going on, to update several divs on the page.
What I am doing is calling update_element_function, with the content as a
block. Inside the block I usually have html, or make calls to other partials
or
2006 Jul 10
1
:revert => false for Droppables
Right now I am using page.remove and page.insert for some complex nested
moves in RJS. I have my draggables set to revert, but they also revert when
they hit a droppable.
Meaning, the draggable will start reverting for part of a second before the
page.remove kicks in. Is there a way to specify :revert => false for the
drop_receiving_element, or something else to that affect?
--
Respectfully:
2007 Dec 05
0
difficulty with onDrop in the ruby helper method
I need to return both the draggable element id and the dropped on
element id to a ruby method. I''m using the helper method
drop_receiving_element, and it''s all good and well until the onDrop
part. I really want to pass both id''s to the ruby method that I''m
calling. Really. However, it seems like onDrop only accepts a
javascript function. :url => {:action
2006 Apr 07
0
weird problem with draggable_element in a partial rhtml
Hi all,
I have an index.rhtml page which calls a partial called _tasks.rhtml. In
the latter i call <%= draggable_element("icon#{@tasks.id}", :revert =>
true)%>. The first display of my page works fine and I get
<script type="text/javascript">
//<![CDATA[
new Draggable("icon32", {revert:true})
//]]>
</script>
But then if I have an ajax
2006 Aug 25
5
Dragging between DIVs with Prototype/script.aculo.us
Hi,
I''m fairly new to script.aculo.us, so hopefully this is the right place
to ask this question. I have the following situation (pseudo-code):
<div>
<Droppable 1>
<Droppable 2>
</div>
<div (scrollable)>
<Draggable 1>
<Draggable 2>
...
</div>
Basically, my Draggables are inside a scrollable <div> element (the
interface
2008 Apr 03
0
draggable_element Messing up CSS for IE7
I am having trouble with draggable_element and come IE7 css. I have a
list where I want the items in the list to be draggable. I need the
list to have a fixed height so I would like a scrollbar. I use
overflow:auto and everything works great in Firefox and Safari. But
IE doesn''t respect the overflow:hidden. Well, it kind of does. It
creates the scroll bars but lets everything spill
2005 Dec 27
2
Drag and drop problem if Droppable zones overlap
Hello,
The question is related to Droppables and Draggable.
I''m creating a splitter component with a DIV that acts as the splitter
and 2 DIV zones that are the splitted zone. To do so I use the
Droppables and Draggable in conjunction.
The splitter DIV is a Draggable component and I define 2 Droppable zones
for
the splitter DIV (Zone A and B on each side of the splitter)
It works fine
2006 Jan 09
2
turning revert off after being dropped
I have a container ''A'' which contains Draggables and a Droppable ''Trash''. These
Draggables are set with ''revert:true''. Now, if a Draggable from ''A'' is dropped
in the Trash, I don''t want it to revert, I want it to just disappear.
I''ve tried using draggable.destroy() but this just prevents it from being
2006 Jun 09
0
Not droppable after first drop in FF
Hi all,
I have a couple of droppables in my page. Each of them
looks like a list and is a <div> containing other
<div> for the lines, each line formed by <span>s for
different fields. Each line is declared draggable
(right after each line, since ithey''re created inside
a loop). I have both of them inside a <div> since I
need to refresh both at the same time and
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 Aug 07
8
Dropables problem on scroll bars
I have a droppable and draggable implementation. works pretty much well
except when my droppables are on a scrollbar (created via overflow:auto)
since my droppables are on a list.
seems that the droppables aren''t working well with scrollbars and overflow.
please help!
thanks!
_______________________________________________
Rails-spinoffs mailing list
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
2007 Nov 16
1
drag & drop list needs refreshing
Hello guys, I''m a scriptaculous newbie (I started working with it only
yesterday) and I have already the first problem.
I''m trying to implement a drag & drop list (fallowing the shopping
cart example http://demo.script.aculo.us/shop) and I''m almost done
but after dropping an item on the target div I need to refresh the
page to see that the item has been moved.
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 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 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});
2007 Sep 28
1
drag and drop reset
I have a draggable, and I place it on a droppable. How do I make the
draggable go back to its original postion? Thanks.
-Tim
--~--~---------~--~----~------------~-------~--~----~
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