Displaying 20 results from an estimated 4000 matches similar to: "Sortables dropOnEmpty does not work inside tables"
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>
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 Aug 11
7
script.aculo.us V1.5_pre1 released
Heya,
I''ve just released script.aculo.us V1.5_pre1.
Please give it a try!
Important new stuff (since V1.1b1):
* Added a main scriptaculous.js file to load in the other libraries
transparently.
* Fixed a condition where standard a href=xxx links wouldn''t work in
autocomplete results. These do now, the onclick event is not
cancelled. [thx to Jasper Slits]
* Added
2006 Jan 23
8
question about Sortables
So, is there any way to specify a sortable to only do a callback when
the dragged item is dropped? As it is, the onChange is called whenever
you move the draggable to a new element (even if you don''t drop it), but
I''d rather only call my function after they drop it to avoid unnecessary
additional server calls. It looks like Droppable supports an ''onDrop'',
but
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,
2005 Dec 05
3
Multi-level drag and drop in scriptaculous?
I am trying to create a screen like Google''s personalized home pages or
start.com, i.e., with draggable sections, with the extra feature that
the child items under the parent headings could be dragged and dropped
from one parent heading to another.
I have set up nested droppable sortables (dropOnEmpty=true) but the
behavior is very inconsistent, i.e, parents do not become droppable
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 Mar 23
4
Implementing nested drag and drop using scriptaculous
Hi.
I have gone through the scriptaculous wiki. I am trying to implement nested drag and drop but not able to do this.
The situation is like this.
_____________________________
| abc | => Box1Line1
| cde | => Box1Line2
| efg | => Box1Line3
| h | => Box1Line4
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
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 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 Aug 06
2
Acts as Most Popular plugin
Make your models feel like they are in high school again. This plugin
retrieves the most frequently occurring values for each column. It
adds methods of the form most_popular_[pluralized_column_name]. Check
out
<http://shanesbrain.net/articles/2006/08/04/acts-as-most-popular-rails-plugin>
for sample usage.
The plugin is mostly just a group_by in disguise. It is probably
overkill if you
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 Jan 18
5
Perform action after in-place edit
I want to be able to call an action after performing an edit using the
in-place editor macro. I want to update multiple divs so I was
thinking about using an RJS template. However, I can''t figure out how
to trigger another action after the method created by
in_place_edit_for runs. Is there is an option on Ajax.InPlaceEditor
where I can inject some Element.update calls?
Thanks,
Shane
2006 Jan 29
2
Questions about Sortable javascript
Hi,
I''ve been playing with sortable, the demos on script.aculo.us and
reading the javascript. I hope I''m not just missing the documentation
somewhere but I can''t find it. I want to do something like Sortable
for the admin side of an open source ecommerce project I''m working on
[1]. I''m relatively new to DHTML but understand the basic ideas. If
someone
2006 Jun 12
5
scriptaculous & sortables/draggables scrolling?
Re,
Would anyone happen to know how to make sortable/draggable scroll down
the page while moving the object if the page happens to be larger than
the screen size? These functions seem to work only within the visible
working space.
Right now I have workaround whereby I have an omnipresent DIV on the
screen to which I drop an element, then scroll down in the browser to
a certain point, and then
2005 Sep 07
0
droponempty doesn''t activate hoverclass?
How come in the latest version of script.aculo.us the dropOnEmpty feature
turns off the hoverclass? I just updated my version because I was running
into some weird display positioning issues (my app is a calendar with my
draggable items being table elements) and now I have no feedback when I am
hovering over a sortable. I can hack the dragdrop.js to make it work again,
but is there any
2006 Mar 01
9
sortable tree?
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi *,
I am new to this list, so please excuse me if this has been covered
before (unfortunately the search function at
http://www.ruby-forum.com/forum/10 is disabled at the moment).
If yes, then a pointer to a solution would be great.
I want to create a sortable tree with scriptaculous Sortable. There are
several categories and subcatgories:
cat_a
2007 Sep 02
1
Scriptaculous - Sortables problem within a scrollable div
Hello everyone:
I''ve been using scriptaculous for very long time and it''s really good.
However, I just came across another problem about using sortables in a
scrollable div.
The basic structure is:
<div style="overflow:auto; height=400px">
<div id=''Item1''></div>
<div id=''Item2''></div>
....
2005 Jul 21
3
Question about sortables
Hi,
I''m trying to use sortables to sort table rows and move them between
different tables (yes, it''s actual tabular data ;). However, either I
don''t know how to use the tag property of Sortable.create properly, or
it''s only working for li''s. Since it''s probably the first option,
could someone post an example of sorting tr tags and move them