Displaying 20 results from an estimated 700 matches similar to: "possible scriptaculous bug"
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
2009 Mar 17
11
Refactoring module
Dear all
Please see the following module, In module SX3 SX4 and SX5 have similar
class Tasklist, but inherit from different class.
I will use the following code to connect to different data sources
RemoteSX3Model.establish_connection sx3_hash
RemoteSX4Model.establish_connection sx4_hash
RemoteSX5Model.establish_connection sx5_hash
How can I refactor my code in module to look simpler? Thank you
2010 Dec 16
1
Ambiguous match error for Cucumber
Hi,
I am trying out the cucumber tutorial
http://www.ultrasaurus.com/sarahblog/2008/12/rails-2-day-3-behavior-driven-development/
My tasklist.feature file is like as follows
"
Feature: Tasks
In order to keep track of tasks
People should be able to
Create a list of tasks
Scenario: List Tasks
Given that I have created a task "task 1"
When I go to the tasks page
Then I should see
2006 Jul 27
1
Update second pulldown menu based on first menu selection?
I know I''ve seen this somewhere on this board and just can''t search it
anymore.
I have three relational tables: clients, projects, and tasks. Currently
I''m working on customizing the ''new/edit'' task _form. So far I have it
listing clients in a pulldown menu so I can assign the new task to a
client. I''d like to have a second pulldown select
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
,
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
2006 Mar 20
5
Sortabls onUpdate function
I have this code.
<script type="text/javascript">
Sortable.create(''orderable'', {onUpdate: doAlert});
function doAlert() {
alert("Hello");
}
</script>
But when I move an item it doesn''t fire the doAlert command, am I
missing something?
2006 May 19
6
Multiple dynamic Sortables
I''m writing an appliation that contains several dynamically created lists. I
had hoped that the following method for using the Sortable library from
scriptaculous would work:
1) create the list
2) create a Sortable for it
3) create another list
4) create a Sortable for it
and so on. Unfortunately this doesn''t work. I can''t find any info in the
documentation for
2005 Jul 08
3
Problem with script.aculo.us 1.0
I just upgraded to the new version and now my storable containers are
not working. here is my code.
Sortable.create("leadstories",
{handle:''handle'',tag:''div'',containment:''leadstories'',onUpdate:
function(element) { new save_order(issueId,Sortable.serialize(element));
}});
Sortable.create("rightnav",
2006 Jan 24
8
scriptaculous sortable
Hi,
maybe I am using this the wrong way but I have a list as follows
<ul id="secondlist">
<li>bla bla</li>
<li> bla bla </li>
</ul>
and then I add dynamically further <li> elements and create a Sortable
but the onUpdate only fires for <li> items that have not been created
via Javascript.
Any clues?
<script
2005 Aug 18
5
Sortable > how to know wich elementID was dropped ?
Maybe a newb question, maybe not.
It''s not well documented, and I want to know how to know the id of my
newly dropped item.
The usage, would be to attach the newly dropped id to its *new* parent in
a DB.
Thanks.
????????????????????????
http://www.samueldr.com
http://www.hostingquebec.ca
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 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 Mar 03
8
How to use the sortable_element tagname option?
I''m having some difficulty adding drag-and-drop sorting to my
application. I''m hoping that someone can help me figure out what I''m
doing wrong:
#view
<table>
...
<tbody id="item-list-body">
<tr id="view-item-<%= item.id %>"....</tr>
</tbody>
...
<%= sortable_element(''item-list-body'',
2006 Aug 14
14
ClockingIT Beta - It''s about time...
My wife and I have been working on our own task-listing, time-tracking
web application, and we''re really interested in some feedback as we
ourselves feel we''ve come a long way.
If you have some minutes to kill (or just want to see how the Comet
functionality provided by the Juggernaut plugin can work) have a look at
http://www.clockingit.com and
2006 Aug 03
6
creating a recycle-bin
Hi all,
I''m trying to create a recycle bin for elements from a Sortable. To do
that I created an <img> (image of a recycle-bin ofcourse) and made it
a Droppable. However what should I do with the element in the onDrop
function of the Droppable to stop it from going back into the
Sortable? How do I remove it altogether from the page?
thanks and regards,
Jeroen
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
2008 Mar 20
2
onUpdate problem with div
I hav the following code:
<div id="puzzle">
<div id="divImage" style="float:left; cursor: move;>test 1</
div>
<div id="divImage" style="float:left; cursor: move;>test 2</
div>
<div id="divImage" style="float:left; cursor: move;>test 3</
div>
<div
2006 Jan 30
5
RE: sortable list question
Assuming that $(ids[i]) is the hidden input field, wouldn''t the
following line need to reference it as a form element?
> $(ids[i]).innerHTML = i;
I would assume it should be (the "'''' + " makes it a string, not sure if
you can set a form element value to an int, maybe you can):
$(ids[i]).value = '''' + i;
Or maybe I''m not