Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
script.aculo.us: onUpdate in Sortable.create
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Louis W  
View profile  
 More options Nov 2 2007, 11:18 am
From: Louis W <louis.wa...@sundancechannel.com>
Date: Fri, 02 Nov 2007 08:18:49 -0700
Local: Fri, Nov 2 2007 11:18 am
Subject: 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
                , only:'drag'
        });

I'm running Prototype 1.5.1.1 and Scriptaculous 1.7.1_beta3


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris  
View profile  
(1 user)  More options Nov 16 2007, 8:04 am
From: Chris <numloc...@gmail.com>
Date: Fri, 16 Nov 2007 05:04:20 -0800 (PST)
Local: Fri, Nov 16 2007 8:04 am
Subject: Re: script.aculo.us: onUpdate in Sortable.create
I had the same problem, and the issue is probably in your markup. Each
item of the 'sortable' has to be named in the format 'string_integer'.
So this will work:

<ul id="makeMeSortable">
   <li id="item_1"></li>
   <li id="item_2"></li>
   <li id="item_3"></li>
</ul>

and this will NOT work:

<ul id="makeMeSortable">
   <li id="firstitem"></li>
   <li id="seconditem"></li>
   <li id="thirditem"></li>
</ul>

The items will still drag if they are not properly id'ed, but the
onUpdate and onChange events will not fire.

This drove me crazy for 3 days. I hope I can save you a similar
headache.

-Chris

c h r i s AT u n t r o d DOT c o m

On Nov 2, 10:18 am, Louis W <louis.wa...@sundancechannel.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tobie Langel  
View profile  
 More options Nov 16 2007, 8:14 am
From: Tobie Langel <tobie.lan...@gmail.com>
Date: Fri, 16 Nov 2007 05:14:19 -0800 (PST)
Local: Fri, Nov 16 2007 8:14 am
Subject: Re: script.aculo.us: onUpdate in Sortable.create
You can easily customize this by resetting (in your own js file) the
Sortable.SERIALIZE_RULE to something else than
/^[^_\-](?:[A-Za-z0-9\-\_]*)[_](.*)$/

Regards,

Tobie

On Nov 16, 2:04 pm, Chris <numloc...@gmail.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Surendra  
View profile  
(1 user)  More options Nov 22 2007, 9:56 am
From: Surendra <singhi.suren...@gmail.com>
Date: Thu, 22 Nov 2007 20:26:31 +0530
Local: Thurs, Nov 22 2007 9:56 am
Subject: Re: [Rails-spinoffs] Re: script.aculo.us: onUpdate in Sortable.create
Another thing which I just discovered is that, the element needs to have an id.
So, if you try to make below ul sortable, it won't work.
Sortable.options function is going to boomerang.
Can't think of a neat solution to fix this, till then it is something
to be careful about.

 <ul >
    <li id="item_1"></li>
    <li id="item_2"></li>
    <li id="item_3"></li>
 </ul>
-Surendra

On Nov 16, 2007 6:34 PM, Chris <numloc...@gmail.com> wrote:

--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com

    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google