similar to: Two problems with Sortable

Displaying 20 results from an estimated 10000 matches similar to: "Two problems with Sortable"

2006 May 28
1
Sortable.create containment:
hi i got a problem with a Sortable.create. i got an array containing the ID of the elements i want to make an sortable of, that is no problem, but i want to be able to drag between the sortables and that where my problem is. i dont know how to assign an array to containment: until now the script looks like this: for (i=0;i<id_gruppe.length;i++) { Sortable.create(id_gruppe[i]
2006 Nov 24
1
sortable - after complete dropping element want to send ajax reqeust with id of elements: draggable and droppable
Hi all. I have specific situations - I use sortable on html list, and after I move elements I want to do ajax reqeust to serwer with the id of dragging element and id of the element that was droppable. How to do it? which function in Sortable class i have to overrider or modify? i try to modife onhover method in sortable and put a ajaxRequest call before methods dropon.parentNode.insertBefore
2007 Aug 27
4
Sortable + Table = Ouch!
I have an HTML table I am trying to "retro-fit" with a sortable such that a cell in one column/row and be moved to another. What I have tried in tyerms of formatting looks akin to: <div id="schedule"> <table> <tr> <td><div id="one">Some Text</div></td> <td><div
2006 Jun 24
0
Sortable with sortables? this.destroy not a function O_o
Hi all I am creating sortable list with the builder. Now i want these sortables to be a sortable aswell. So i wrap a div around them and run sortable create on the main-container. I have it like so (simplified): var myLists = new Array(); // start a empty array for push var mainDiv = ''main''; // some already present div to carry all stuff. function newList() { var sortlist
2006 Mar 07
1
Sortable trouble
Hi everybody, Could somebody have a look at a little sortable example at http://www.weisshuhn.de/diagnose/sortable.html It implements two Sortables and a Draggable. You can drag elements from the "source" Sortable to the main Sortable, sort them (surprise) and drag them to a trash. Whenever you drag from the "source", a new element is created (by cloning an invisible
2006 Feb 01
1
Sortable onUpdate problem
Hi, I have two sortables with different options (but same tags. just ''li''). When I drag an item from sortable1 to sortable2 I want it to gain the options that the sortable2 items have. I''ve tried all day to understand how Draggables and their observers are destroyed but I keep gettting buggy behavior. Part of the problem is the draggable and the draggableObserver are
2006 Jan 31
1
RE: Re: form elements in sortable lists
I never got it to work back on one of the early release candidates of scriptaculous 1.5. However, I thought I read in one of the release notes that it was fixed. Are you using the latest version? I ended up just disabling the sortable while they were in ''editing'' mode, and then recreating it after they were done editing. Greg > -----Original Message----- > From:
2006 May 29
1
Re-orderable column DataGrid + Patches for Sortable.delay and Sortable.ignorePositionXY
I would love to get some feedback and test a patch to rev. 4380. First, the money shot - check out this demo of a scriptaculous DataGrid: http://development.finetooth.com/?p=13 I''m using the <tr> as a sortable with the <th>''s as the sortable elements. The Patch file: http://www.commoner.com/~lsimon/scriptaculous/delay_and_ignorePosition_forSortables.diff The patch
2006 Jan 28
4
Unspecified error in prototype.js
Hi, 1. I have 2 panes, each having approximately 45-50 slides, all the slide images are 110x82 pixels in size, enclosed in their respective div''s. 2. These divs are further enclosed in a parent div, which is defined as a Sortable on page load. 3. There is a destination div on the RHS also. Sortable.create("div_leftDiv", {ghosting:true, revert: true, dropOnEmpty:true,
2006 Dec 28
1
Sortable.create format
Hi I have a simple question. Default format in sortable.create is: /^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/ and sortable.serialize returns "key[]=value&key[]=value&key[]=value... " What format should I use in sortable.create, if i want to have something like that (after serialize): "value,value,value" Thanks, Sever --~--~---------~--~----~------------~-------~--~----~
2008 Feb 15
1
Sortable limit number of elements
Hello, Well, i need to limit the number of elements in a sortable. I new to scriptaculo but i have lots of experiencie with javascript. Since limit the number of elements is not supported by Sortable i would like to implement, i already took a look at the Sortable class in dragdrop.js and it looks like that onHover and onEmptyHover deal with the update of the UI, however I''m not unable
2007 Jul 19
1
Storing order of sortable objects in RoR
I have two sortable lists that you can drag and drop to and from. Each object in the lists have a position field in the object''s table. I want to be able to update the position in the database automagically once a user has sorted the list. I can drag and drop just fine but I am not able to store the new positions in the database. I am trying to use Ajax.request in the onUpdate callback
2006 Feb 17
2
Add new lists to existing sortables container
Hi All, I''m using scriptaculous for the first time. I''m creating a CMS where the user can simply drag menu items to change the order. This is all simple enough. My problem comes with nested menus. The sortables are fine within their own menu but not across other new menus. The reason for this is that I''m using AJAX and only create a sub menu when it''s parent
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 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">
2005 Dec 04
2
Adding sortables dynamically
Hi all, is there a way to define the containment option for a sortable so that it is a class name instead of an id list? I have a case very similar to the sortable lists demo, the only difference is that I'm adding new list containers dinamically, so either I need to redo the Sortable.create calls for all new elements to include the newly added container, or having someway to have them
2006 Jun 14
3
sortables and onClick events firing
I have a page that I have been tasked with adding sortable support to, and the div elements that are being dragged have a <a href> in them with an onClick handler that opens a new window with a preview. Is there a way to keep that onCLick from firing when a sortable is dropped? Sam D _______________________________________________ Rails-spinoffs mailing list
2008 Jul 02
1
Stop sortable dop event
Hi! I have a sortable list Every item in this list has a droppable area In this area I could drop some elements of the same list Everything is ok except I need to stop the sortable event when I drop an item in the droppable area Is this possible? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby
2007 Nov 02
3
script.aculo.us: onUpdate in Sortable.create
Can''t seem to get the onUpdate to work in for a sortable list. I am following the documentation and the included functional tests but nothing is firing for me. Any idea why? Sortable.create(''list1'', { tree:true , onUpdate:function(sortable){ alert(''onUpdate'') } , handle: ''handle'' , scroll:window ,
2008 Jul 01
2
Sortable, stop event on drop
I''ve got a "Sortable" list that is sorting just fine. But in the list items, there is a link. If you mousedown on the link, drag it to a new location and mouseup, the list gets reordered appropriately, but then the link is followed (you did - after all - click it). Is there a way to either stop the mouseup/click event before activating the link after you''ve dragged