its because you need to make it live so that when new items with the
same class show up they become sortable. I've never used live with
sortable so you might need to investigate further but I think this
will work

$(".liste_champs")live("sortable", function(){
      revert: true,
      connectWith: $(".liste_champs"),
      start: function(){
          $(".liste_champs").addClass('ui-state-highlight');
      },
      stop: function(){
          $(".liste_champs").removeClass('ui-state-highlight');
      },
      receive: function(){
          $("#champs").append($("#champs_caches").children().clone
(true));
      }
  });


btw sorry for the delay

On Jul 17, 4:35 pm, Jérôme GRAS <jeromeg...@gmail.com> wrote:
> Ok, I fixed the first id bug.
> The new version is online.
>
> Unfortunately, the main problem is still present.
> I tried a lot of things unsuccessfully...
>
> Please take a look :-)
>
> On Fri, Jul 17, 2009 at 15:07, Mean Mike <mcgra...@gmail.com> wrote:
>
> > I found a least one major problem here
>
> > $("#champs").append($("#champs_caches").clone(true).removeClass("ui-
> > helper-hidden"));
>
> >  your cloning div with id "#champs_caches" thereby creating another
> > div with the same id
>
> > there may be more problems than that but get that fixed then lets go
> > from there
>
> > Mean Mike
>
> > On Jul 17, 2:58 am, rejome <jeromeg...@gmail.com> wrote:
> > > Hello everyone !
>
> > > I am facing a strange problem here :
> >http://rejome.homeip.net:8080/prototype.html
>
> > > When I clone a list that is part of a Sortable, the Draggable objects
> > > are not bound to the cloned list, only the original one.
>
> > > Do you have a solution or a hint for me please ?
>
> > > Thanks in advance.
> > > Réjôme.

Reply via email to