Displaying 20 results from an estimated 10000 matches similar to: "Adding elements to a sortable after initialisation"
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]
2005 Dec 17
0
hoverclass doesn''t seem to be set from Sortable.create
Hey folks,
I''m having a little trouble with the hoverclass parameter of the Sortables.create method. Unfortunately I can''t post a demo page at this time, but I''m creating three lists with the following code:
Sortable.create("listOne", {dropOnEmpty:true,containment:["listOne","listTwo", "listThree"],constraint:false,
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 Jun 26
0
sortables and accept question
i did some searching through the archives and didn''t really find an
answer to my question, so i''m going to just ask it.
i have a situation where there are 3 sortable lists. list1, list2,
and list3 i need list2 to accept divs from all 3 lists, but list1 and
list3 to only accept divs from the list1 and list3 i''ve added two
classes to the divs in my sortables: .rail
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
2006 Jan 08
0
sortable floats help, please!
ok, first off. i love script.aculo.us!
anywho on to business.
the hoverclass doesn''t seem to work in the sortables.create. and the
handle doesn''t work (yeah i have the id="handle" ) this is what i have ..
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 29
0
Sortables question
Hello,
I am new to Scriptaculous, and was recently brought into a project using
it to create an email Newsletter builder. The idea is that the user
will have lists of elements that he can add to the email page by
dragging the element he wants to add from an "available sections"
container, to a "loaded sections" container. Dragging from the loaded
to available will
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
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 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 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
2005 Aug 24
1
Strange Bug - Dragging a sortable filled with sortable - the bigger one "stays"...
*** don''t know if i''ll be clear... if not, tell me
Hi.
http://favoris.lichenmedia.com/untitled.htm
I don''t know why, but when I drag those sortables (tagged with the handle
handle) filled with the sortables (the lists with lorem ipsum) The
handled-one "stays" where you dropped them.
When you drag the li between the uls that are the big containers, no
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:
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
2006 Aug 24
3
Two problems with Sortable
Hello-
I''m having two problems with the sortable class:
1. I have two sortables whose items can be dropped between them. The
immediate parent <div> of each these adjusts its height accordingly,
but any grandparent or n-parent <div>s do not adjust their height.
2. In everyone''s favorite browser, InternetExplorer, the handler text
is selected and the sortable
2005 Dec 28
3
Sortable - can we make one or more elements in a list sticky?
In a sortable list, is there a way to say, pass a className whereby some
of the elements in the sortable element would not become
draggables/droppables? If not, it seems like it could be implemented
similarly to the handle option.. Any interest?
Also - I submitted a patch that adds the option "delay" so that draggables
in a Sortable won''t truly become activated until after the
2007 Nov 09
0
iframe is reloading during each sortable drag/drop point
We are creating a simple widget portal for our site and trying to use
Sortables. Each of our widgets is an iframe. But when you try to
drag an element containing an iframe the Sortables api causes the
iframe to reload at each possible drop point. This causes the ui to
shutter and become unusable.
I have narrowed the issue down the onEmptyHover where
dropon.insertBefore is called. Is there a
2005 Nov 03
0
sortables w/ hoverclass
Good hello.
I'm confused by the 'hoverclass' option that can be passed to Sortable.create
It works with Droppables.add but (for me) it doesn't seem to do
anything when used with Sortables. (afaik Sortable.create just calls
Droppables.add and passes the hoverclass option through- or at least
it's supposed to)
Not sure if it's broken in the current svn script.aculo.us but