Displaying 20 results from an estimated 3000 matches similar to: "Sortable as a class?"
2005 Oct 13
3
Tweaks of Array.prototype
Hi all,
I encountered a big problem when trying to use Scriptaculous and
Htmlarea in the same page.
The Htmlarea code uses a lot of "for (var i in array_variable)" to
iterate on array elements. Problem is that prototype.js augments
Array.prototype, which then show up in the iteration, severely breaking
htmlarea.
The easy workaround is for sure to use "for (var i = 0; i <
2005 Oct 17
7
Ajax.MultiUpdater ?
Hi,
I''m using prototype within ruby on rails.
One limitation I''d like to overcome is the restriction of beeing able to
update just one html elements content using from_remote_tag or
link_to_remote.
AFAICS this is just a restriction of the form_remote_tag/link_to_remote
implementation and it''s underlying Ajax.Updater class. Right?
In theorie there should be no problem,
2005 Nov 03
3
Prototype is spamming my arrays!
Hi all, when I want to interate through an array, all those pesky Prototype functions get in my way!
When I do this:
---------------------
r="";
for(x in new Array()) {
r+="var: "+x+", val: "+ (new Array())[x]+"\n";
}
alert(r);
---------------------
I get a giant alert window with loads of functions printed out.
Is this a bug, or is there a better way to
2005 Sep 19
4
Rails vs. Cocoon
Hello all,
I''m hoping that someone out there in Rails-land has developed in both Cocoon
and Rails and would like to share their experiences using both application
frameworks.
I''m going to be doing a presentation in the next couple of days on the
advantages that Rails affords. The higher-ups are going to use this info on
deciding whether or not to move away from Cocoon and
2005 Jul 21
1
attended transfert
hi
i would lke implement attended transfert (or consultative transfer) on
asterisk server,
but i don't find doc about this.
Could you help me with some doc about attended transfert?
thanks
2007 Feb 26
24
Ruby/rails port of Cocoon/hibernate
Hi,
I''m currently running an apache/jboss cocoon/flow/hibernate/ajax
paypal (directpayment) project and am looking into the possibility of
porting it across to ruby/rails. For that reason I would like to know
the following:
1. Can I call my java classes or would I be looking at a complete
rewrite in ruby?
2. How effective is ruby in terms of seperation of concerns regarding
design from
2008 Mar 18
2
Matching multiple nodes with a regular expression
Hello,
I''m setting up puppet on various clusters (tomcat, mysql, tomcat
+cocoon, etc) of computers, each of which has a hostname consisting of
the cluster type and a unique id (e.g. tc-dev-1, mysql-stg-3, etc).
I''ve been merrily adding each node by hand to puppet but being
naturally lazy I wondered if this could be done with a regular
expression instead, something along the
2005 Aug 05
4
disable Sortable
Can a Sortable be disabled/deactivated/destroyed once it''s been created?
I''ve tried a few different things with no success.
Here''s what I''m doing:
I have an ordered list. When a particular event happens, I created a
Sortable from the list. I clone the list prior to creating the Sortable so I
can revert to the original list if sorting is canceled. If, however,
2006 Jan 07
2
Bug#346350: logcheck-database: dhcp3-server ignores need to include (none ) client host name
Package: logcheck-database
Version: 1.2.39
Severity: normal
I use dhcp3-server and a dhcp client which is Sony HDD video recorder
CoCoon. The client not return client host name.
In this case, dhcpd server assumed the client host name is (none).
Therefor dhcpd output log described below.
> Jan 7 10:49:24 on-o dhcpd: DHCPDISCOVER from 08:00:46:33:55:77 ((none)) via eth0
> Jan 7 10:49:25
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
2005 Jul 25
5
dragdrop.js: drop from sortable
I have a Sortable that''s working like a charm, but now I would like to
be able to drop objects from that Sortable onto a Droppable that''s not
part of my Sortable.
I just did a small test page where it didn''t work, so my first question
has to be "is this supposed to work?", before I dig too deep into it.
"accept" for the droppable is set to the
2007 Nov 30
2
make sortable divs and innerHTML
My problem is that elements that were included in my site with
innerHTML can´t be sortable because the DOM doesn´t know that these
elements are there.
Has anybody a solution or an idea to this problem?
ToM
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group,
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
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
,
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
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
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 10
2
Sortable + Draggable : doesn''t follow the mouse horizontally
When a ''draggable'' element is made ''sortable'', it no longer follows the
mouse horizontally when you drag it.
Is there a solution/workaround?
TIA
Alain
2005 Jul 07
2
Allowing drops on "empty" sortable
Hey folks,
On the Drag and Drop demo page in the Sortable Lists Demo section:
http://script.aculo.us/drag-and-drop
If you drag all of the items from the first list into the second list,
it appears that you cannot drag a list item back into the first (now
empty) list.
Is there a way to allow a Sortable that is empty of draggable items to
accept dropped items?
Danilo
2005 Aug 02
3
Scriptaculous: Sortable (dragdrop.js) onUpdate
Hi all,
In the following code, it doesn''t look like the onUpdate() event is firing.
Am I doing something wrong?
<ul id="testSort">
<li id="item1">item 1</li>
<li id="item2">item 2</li>
<li id="item3">item 3</li>
<li id="item4">item 4</li>
<li id="item5">item