Hi Brice

Thanks for the workaround.

I realy like to see that the interface plugin get updated
and is working in the trunk. Is there a way to participate
on that development and help to keep the development up to 
date?

If not, what's the roadmap for the interface plugin? And 
can we count on a stable interface plugin in the future?

Perhaps its a good idea to support a minimal drag, drop and
sortable plugin which only focus on that part. I guess it
would be easier to support a stable version and keep that
in sync with the core development of jquery.

Regards
Roger Ineichen

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brice Burgess
> Sent: Sunday, December 17, 2006 6:09 AM
> To: jQuery Discussion.
> Subject: [jQuery] [Interface Elements] onChange callback 
> BROKEN is sortables
> 
> There have been many complaints about the onChange callback 
> being broken in sortables posted to this list -- as well as 
> some patches providing a a fix. There have been no developer 
> responses to these posts & it looks like the plugins SVN 
> repository @ jquery.org has not seen any action regarding 
> this issue -- which is relatively unfortunate as this is 
> perhaps the MOST IMPORTANT of the callbacks. After all, once 
> things are sorted -- don't you want to save that state? :)
> 
> Anyway... I came across this issue in an effort to rid my 
> program of all things prototype. For those interested, here's 
> a easily modifiable (albiet kludgey) workaround;
> 
> var pommoSort = {
>     init: function() {
>         var s = $.SortSerialize('grid');
>         this.hash = s.hash;
>     },
>     update: function(hash) {
>         if(this.hash == hash)
>             return false; // don't do a thing if unchanged...
>         this.hash = hash;
>        
>         // call datasource updater via ajax request...
>        
>         return false;
>     }
> };
> 
> $().ready(function(){
>    
>     $('#grid').Sortable({
>         accept : 'sortable',
>         handle: '.sortHandle',
>         opacity: 0.8,
>         revert: true,
>         tolerance: 'intersect',
>         onStop: function() {
>             var s = $.SortSerialize('grid');
>             pommoSort.update(s.hash);
>         }
>     });
>     pommoSort.init();
> });
> 
> 
> Also, it is of importance to remember that your "sortable" 
> elements (be it LI's or DIVs -- or anything possessing the 
> class passed as the "accept" parameter ["sortable" in the 
> above case]) have a ID assigned. 
> The ID is what iSort uses during serialization.
> 
> Hope this helps ... and thanks for the plugin! :)
> 
> ~ Brice
> 
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
> 


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to