similar to: Ajax sortable_element refresh

Displaying 20 results from an estimated 900 matches similar to: "Ajax sortable_element refresh"

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 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 Feb 19
2
Sortable list (scriptalicious) and updating database
I have made a sortable list which is sortable by dragging & dropping the list elements. It works, but the order of the elements will not be updated in the database. Hopefully someone could help me, or tell me what I''m doing wrong. Thnx! Rgds, Eric Controller: album_controller.rb class AlbumController < ApplicationController def show_sort_album @photos =
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.
2006 Jan 07
1
Sortable Element with Partials??
Hi Everyone, 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" %><span id="title_<%= item.id %>" class="title"> <%= item.value %></span> <span
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 generation: <%= sortable_element
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'', :complete => visual_effect(:highlight,
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 something like this in the edge version it
2006 Jul 17
1
sortable_element - Altering defaults set by rails
Hi there, I''ve got the following code to generate two sortable elements but whenever someone drags and drops an item, i only want it to return a 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
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 Aug 29
0
sortable_element :onUpdate
First time poster - hope I''ve done sufficient homework to get more than an rtfm: In my view, I have a <ul> list wherein each list element is identified with an id, thusly: <ul id="todoHandle"> <% for task in @tasks %> <li id="task_<%=task.id%>"> <%= task.Description %> </li> <% end %>
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 method in a
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 Jun 22
0
sortable list doesn''t work on production server
I have a sortable list in one of my views, using the sortable example from the recipes book. The sorting works great on my mac. When I throw it on the server for testing it doesn''t save the display order. I cracked open the log file and see that it''s not even returning the id''s like it should: Parameters: {"action"=>"sort",
2006 Apr 06
3
sortable list not saving to database
i am trying to use a sortable list on my app. i used the chapter in Rails recipes as a reference on how to do it. i have the following code in my controllerr: def sort @user_list = User.find(params[:id]) @user_list.tasks.each do |task| task.position = params[''user-list''].index(task.id) + 1 task.save end render :nothing => true end and in my
2006 Jan 26
2
question about sortable demo
Hi, I''m new to the script.aculo.us library and AJAX. Of course, I already want to use a sortable list for something more complicated than the sortable list demo. In the example below, what is the structure of params[:list]? I don''t know what I can do with it once I have it in my controller method. Thanks, Peter # view <ul id="list"> <% 6.times do |i|
2006 Mar 03
8
How to use the sortable_element tagname option?
I''m having some difficulty adding 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'',
2006 Nov 22
2
Problem with "additional" submenus
Hello all, First off, thanks for the great work. I have recently added "more submenus" to a functioning advanced menu that only had one "submenu off of the main menu before" The addition of the new submenus has caused the main menu to not function correctly and I have been pouring over the code for several weeks and I just cannot see the error that I have introduced. This
2004 Feb 03
2
SYSLINUX 2.09-pre5 - Menu Depth "Feature"
HPA, I believe I've found a possible bug with /menu. This against the unmodified -pre5 snapshot. SRC: http://www.survivaldisk.com/menutest.c COMPILED: http://www.survivaldisk.com/menutest.com It's easiest explained if you just compile the .c and experience it for yourself, anyways. If you have two submenus nested within each other and then call a third menu it will bring up the
2006 Feb 14
2
Inline list editing with RJS: best practices
I wanted to get the community opinion on the best way to use partials and inline list (<li>) editing. I have a very common scenario where a list is rendered: --- index.rhtml --- <ul> <%= render :partial => ''item'', @collection => @items %> </ul> --- _item.rhtml (simplified) --- <li id="item_<%= item.id %>"> <div