Displaying 20 results from an estimated 57 matches for "sortable_el".
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 awar...
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 ar...
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'' :
2006 May 30
1
sortable_element does not initiate AJAX calls
Having an odd problem with sortable_element. The :url option doesn;t
seem to actually work. No AJAX calls are being generated. I can tell
because Firebug extension does not show any AJAX requests, and the
development.log file does not do anything when droppping the items in
new positions.
Here is the code I am using for sortable...
2006 Apr 05
0
Submitting sortable_element as part of form
Good evening all...
I''ve been marveling over how easy it is to make amazing drag-sort
interfaces using sortable_element. My users are really blown away by
how intuitive and simple these controls are. However, in my current
project I''m trying to use it in a particular way which has me stumped.
Normally the sortable_element makes an AJAX request whenever it is
changed. But in this case, my sortabl...
2006 Jul 17
1
sortable_element - Altering defaults set by rails
...serialised list of the items in categoryartworks, the unlinkedartworks
can be in any order and I don''t care. I can then delete those artworks
that were in category artworks but aren''t in the serialised list, plus
reorder the category artworks. Here''s the code:
<%= sortable_element ''categoryartworks'',
:dropOnEmpty => true,
:containment => ["categoryartworks","unlinkedartworks"],
:constraint => false,
:parameters => "Sortable.serialize(\"categoryartworks\")",
:url => { :...
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/...
2008 Jan 15
0
patch review for the sortable_element helper
This patch adds the ability to call the sortable_element helper
without the :url parameter. This can be useful if you want to handle
the order update yourself and avoid calls to a remote action each time
the sort order changes. Example:
<%= sortable_element("my_list", :handle => "my_handle" ) %>
If you try to do someth...
2005 Jul 11
0
Using sortable_element properly with DIV tag
Hello,
I''m trying to use sortable_element to allow users to AJAXishly
reorder a page of images. These are arranged in a grid format, not a
vertical list, so I''m using Rails code like this to make it happen:
<%= sortable_element ''thumbholder'',
:tag => ''div'',
:complet...
2006 Apr 18
0
sortable_element not updateing more than once in a page load
I''m using a sortable_element in my app. I drag an element to re-position
it and it works only one time. When i try to do it more than once it
will not work. I have to refresh the page to be able to do it again.
Any help is greatly appreciated.
Bryan
--
Posted via http://www.ruby-forum.com/.
2007 May 29
0
Ajax sortable_element refresh
...aitem %>
<%= submit_tag "Remove item" %>
<%= end_form_tag %>
<ul id="list">
<% 6.times do |i| -%>
<li id="item_<%= i+1 %>">I''m number <%= i+1 %></li>
<% end -%>
</ul>
<%= sortable_element ''list'', :complete => visual_effect(:highlight,
''list'') %>
</body>
</html>
### Controller
def index
end
def add_item
render_text "<li id=\"item_7" + "\">I''m number 7</li>"
end
--~-...
2007 Aug 29
0
sortable_element :onUpdate
...d="todoHandle">
<% for task in @tasks %>
<li id="task_<%=task.id%>">
<%= task.Description %>
</li>
<% end %>
</ul>
Next I have a sortable that is intended to make a callback after things are
updated:
<%= sortable_element :todoHandle, :handle => ''handle'' ,
:containment => [''newHandle'',''todoHandle'',''doneHandle'',''trashHandle''],
:dropOnEmpty => true,
:onUpdate => ??????????? %>
What I would like to...
2009 Mar 01
1
sortable_element helper query
Is it possible to call helper method instead of controller action while
using sortable_element helper method?
Ref:
http://api.rubyonrails.org/classes/ActionView/Helpers/ScriptaculousHelper.html
The url field in the example is like controller/action type. Can we call
ControllerHelper method instead? Because we need to save the sorted
element in the database, so my guess was to call a me...
2006 Mar 03
8
How to use the sortable_element tagname option?
...ding drag-and-drop sorting to my
application. I''m hoping that someone can help me figure out what I''m
doing wrong:
#view
<table>
...
<tbody id="item-list-body">
<tr id="view-item-<%= item.id %>"....</tr>
</tbody>
...
<%= sortable_element(''item-list-body'',
:tagname => ''tr'',
:url => { :controller => ''Item'', :action => ''reorder'' }) %>
I see that the JavaScript debugger is complaining that "tr is n...
2006 Feb 27
4
Getting nuts with sortables...
...<li id="item2"> Item 2</li>
<li id="item3"> Item 3</li>
</ul>
<h3>List B</h3>
<ul id="listb">
<li id="item4"> Item 4</li>
<li id="item5"> Item 5</li>
</ul>
<%= sortable_element "lista",
:containment => "list",
:url => { :action => "lista_action" } %>
<%= sortable_element "listb",
:droponempty => true,
:complete => visual_effect(:highlight, ''listb''),
:containment => ["...
2006 Mar 20
0
sortable_element behavior change from 0.13
Originally when I implemented my app, I had a series of sortable
elements that could be dragged around to be reordered. To drag around,
I would click and hold down the mouse button and move the element to the
desired position.
After updating the dragdrop.js library, now I just click on the element
(which selects it) move my mouse pointer to the desired position
(without having to hold the
2005 Dec 11
1
redering CDATA wierdness
I am attempting to do the sortable_element tutorial from scriptaculous.
(http://demo.script.aculo.us/ajax/sortable_elements)
Upon viewing the script.aculo.us source, I see this line is generated...
<script type="text/javascript">Sortable.create(''list'',
{onUpdate:function(){new Ajax.Updater(''...
2006 Jan 21
1
Sortable Element with Partials?
...gme.gif" %><span
id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
class="actions"><%= link_to("Delete", :action => "destroy", :id =>
item.id) %></span></li>
<%= sortable_element(''sortable_list'', :update => "list-info", :url =>
{:action => :update_positions}) %>
<% end %>
</ul>
However, now that I have added AJAX CRUD controls, I can''t seem to get
the sortable elements to work! I am using a partial within m...
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...
2006 Apr 28
7
acts as drop down
Hi
Im using the acts as drop down plugin
and have this code below
acts_as_dropdown :text => "forename", :order => "forename"
It currently makes use of the forename in the option tag, how can I get
it to use the surname as well
ie somthing like ''forename'' . ''surname'' in php
Thanks
--
Posted via http://www.ruby-forum.com/.