Displaying 20 results from an estimated 1000 matches similar to: "Sortables: which element moved?"
2005 Aug 18
5
Sortable > how to know wich elementID was dropped ?
Maybe a newb question, maybe not.
It''s not well documented, and I want to know how to know the id of my
newly dropped item.
The usage, would be to attach the newly dropped id to its *new* parent in
a DB.
Thanks.
????????????????????????
http://www.samueldr.com
http://www.hostingquebec.ca
2006 Feb 27
4
Getting nuts with sortables...
Folks,
It has been a whole day spent on this but I still can''t get my mind
around the most probably very stupid/basic mistake here... First, the
code I use:
<h3>List A</h3>
<ul id="lista" >
<li id="item1"> Item 1</li>
<li id="item2"> Item 2</li>
<li id="item3"> Item 3</li>
</ul>
2005 Jul 13
2
A small question about dragging effect on sortables
Hello,
I''m implementing sortables in Rails and I can''t seem to get the
lovely effect from the Sortable Floats Demo on Thomas'' wonderful site:
http://script.aculo.us/drag-and-drop#sortable-floats-demo
Simply put, I can''t get the effect whereby you''re dragging the image.
When I have a vertical or horizontal constraint on a list, the effect
2006 Mar 16
2
how to distinguish between click and drag?
Hi All
I have a sortable <ul> list where each <li> contains a link.
e.g.
<ul>
<li><a>link</a></li>
<li><a>link</a></li>
<li><a>link</a></li>
</ul>
How can I go about stopping the click event on the link if the li
element has been dragged?
Cheers
Rob
2006 Feb 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the
mouse horizontally when you drag it.
Is there a solution/workaround?
TIA
Alain
2006 Jun 26
3
Scriptaculous Sortable Element Issue
I have a <ul> that contains a number of list items, and I''m using the
sortable_element helper to reorder then via drag-and-drop. This works
great, however, when I insert a new <li> into the <ul> with Ajax, the
sortable_element doesn''t know about it. Is there a way to refresh this
collection?
Thanks for any help.
--
Posted via http://www.ruby-forum.com/.
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:
var myrules={
''div#steps ul'' :
2007 Sep 02
1
Scriptaculous - Sortables problem within a scrollable div
Hello everyone:
I''ve been using scriptaculous for very long time and it''s really good.
However, I just came across another problem about using sortables in a
scrollable div.
The basic structure is:
<div style="overflow:auto; height=400px">
<div id=''Item1''></div>
<div id=''Item2''></div>
....
2006 Jan 21
1
Sortable Element with Partials?
Hi Everyone,
I posted this last month and unfortunately, I didn''t recieve any
replies. Maybe this time I''ll have better luck. I originally had my
sortable element list working properly like so:
<ul id="sortable_list">
<% @items.each do |item| %>
<li id="item_<%= item.id %>"><%= image_tag "dragme.gif"
2006 Jan 10
1
Can <dl> be made sortable?
I was experimenting with using some interesting CSS styles with <dl>
<dt> and <dd> elements. But then I needed to be able to make this
list a sortable_element in Rails, and it did not work. I had to
convert it all to <ul> and <li>.
Is there a reason why sorting can''t work within definition lists? I
searched the list archive and found the
2006 Apr 22
3
Ajax call not being made on a Sortable list
Hi,
I am creating a sortable list using this code:
<%= sortable_element("fields_list",
:url => { :action => "order", :id => @fields_list })
%>
it creates a sortable and I can move elements up and down, but it is not
making any call to the "order" method.
I do not see any log activity in the development log nor do I see any
errors there. The
2005 Jul 26
1
unmovable items on sortables...
The "Sortable lists demo" is almost perfect for a project, but once
you drag all the items from the first list to the second, you cannot
drag back to the first. I need to be able to have several <ul>s that
can be dragged back and forth between, even when one is emptied.
Possible solutions?
1) create a <li> that is styled as a header, and is unmovable
2) modify the
2006 Nov 04
1
Dynamically updating a sortable list using RJS
I''ve got the following sortable list in one of my views:
<ul id="sortable_list" class="sortable_list">
<%= render(:partial => ''section'', :collection => @sections) %>
</ul>
<div class="new_section" id="new_section">
<%= form_remote_tag(:url => {:action =>
2006 Jan 05
1
sortable_element not recognizing newly added <li> elements
I have a user defined list of items. Using the sortable_element
function, I can manipulate the ordering of this list fine by dragging
each component around.
When I dynamically add another <li> item to this list, the newly added
item is _not_ "draggable" like its other siblings.
Using the sortable_element function, how do I make it aware of newly
added list items? Here is my
2006 May 15
3
Drag and drop tutorials/examples?
Just finished our first proper rails app and I''m trying to add some AJAX
effects for the first time. I''ve got Rails Recipes and the Rails
Cookbook, none of their examples seem to be a good fit with what I''m
trying to achieve. Which is...
I have 2 lists of users. One for assigned users, one for unassigned
users. I want to be able to drag users between the lists to
2007 Jun 14
3
serialize with sortable_element (rails)
creating multiple lists with sortable_element and would like to
serialize them and save back to the db.
i have the sorting between multiple lists working properly. can anyone
point me in the right direction for serializing and saving?
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2006 Mar 28
1
Simple question about sortables...
Hi, I''m new to the prototype and scriptaculous (v1.5.1) libraries.
I''m creating a sortable list using the code below, and I''m finding that
while a list element is being dragged in IE, the element text is
transformed to appear bolder than the original. In Firefox, the text
becomes opaque.
Is there anyway to stop this from happening, ie don''t change any
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 Jun 15
2
Drag and Drop Sortable Tree
I''ve gone through Chad Fowler''s recipe for creating a drag and drop sortable
list, and have been trying to extend this to a sortable tree. Has anyone
come up with or seen code which allows drag and drop sorting (altering the
position and parent_id variables of the relevant objects) but for data in a
nested tree rather than a list form?
- Justin
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