similar to: Checkboxes get reset in sortable element in IE

Displaying 20 results from an estimated 1000 matches similar to: "Checkboxes get reset in sortable element in IE"

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
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 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 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
2005 Oct 27
5
Problem passing event object
Hi all, I''m having a problem with an Ajax.Request. I can''t figure out how I can pass an event (an onclick on a checkbox) which causes the Ajax Request, to be recognized in an onSuccess function. Here''s my simplified code: var RequiredField = Class.create(); RequiredField.prototype = { initialize: function(chkbox) { this.chkbox = chkbox; this.chkbox.onclick =
2006 Apr 05
1
Nuby Sortable Question? How do you pass multiple lists back to the server
I have multiple drag and drop lists. If you sort within one list, you can pass the list back to the server using: <%= sortable_element ''task-list'' << person.id.to_s , :url => { :action => "noop", :id => @user }, ... %> Which causes this to be included in the javascript: onUpdate:function(){new
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 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 May 24
1
Sortable: Ajax not firing?
Using Rails to generate a sortable list, I get the draggable/sortable page elements, but Ajax never fires back the post-sorted list. (I''ve checked with IE & Firefox, the "save this order to the DB" controller hasn''t been called.) The View: <p>Drag to sort.<span id="sort_info"></span></p> <ul id="sort1">
2006 Jun 16
1
sortable acts_as_tree with heirarchy
I''ve been stumbling on the tut at oriontransfer (http://wiki.oriontransfer.co.nz/main/show/SortableTree) I''ve got it working in a one dimensional list and I''ve got the drag and drop working on children, but as can''t get it to save the tree. Here''s my view: <h2>Menu Prototype 2</h2> <%= flash[:notice] %> <ul
2006 Jun 28
1
sortable lists, database update
Hi, I have some images and I want to be able to drag them into the order I want and have the database updated accordingly. I have an unordered list elsewhere in the application that works well, but for the images I cant get it working. In my controller I have: def updateorder params[:images].each_with_index { |id,idx| ProductImage.update(id, :display_order => idx) } render :text
2006 Jun 02
2
I need help with my 1st sortable list!
Ill keep it brief. Dragging an item is working but dropping and updating the list gives me this error - NoMethodError in AdminController#sort You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each #{RAILS_ROOT}/app/controllers/admin_controller.rb:171:in `sort'' # My view - <ul
2006 Jun 09
0
Sortable list with non ajax submission
I am trying to create a sortable list that is submitted not with an AJAX call but by a standard form submit button. Right now I have def reorder_group_members @group = Group.find(params[:id]) @group.group_members.each do |member| member.position = params[:memberlist].index(member.id.to_s) + 1 #I get a nil error for this line. It would seem that params[:memberlist] is not
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|
2005 Jul 20
0
Re: Using sortable.
Thomas, I am trying to use the Sortable functionality through a rails implementation. My sortable container looks like this: <div class="thumbnails"> <div class="minus_navigation"> <a href="javascript:Photos.selectPrevious()"> <img alt="Move to previous photo" class="navigation"
2005 Jul 20
0
Using sortable.
Thomas, I am trying to use the Sortable functionality through a rails implementation. My sortable container looks like this: <div class="thumbnails"> <div class="minus_navigation"> <a href="javascript:Photos.selectPrevious()"> <img alt="Move to previous photo" class="navigation"
2006 May 02
0
RE: Rails Digest, Vol 20, Issue 39
All assumptions aside, "rectest" and "salt" are usernames not databases/schemas according to the pasted config. If they were in fact different databases/schemas, this problem could never have happened. While different database brands may have tricks for ways to handle users and what they perceive as a database/schema, the fact remains that if 2 literally separate databases
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>