2009/10/18 wings <[email protected]>

>
> take a look at this:
> http://stackoverflow.com/questions/187073/jquery-sortables
>
> On Oct 8, 1:55 pm, Bert <[email protected]> wrote:
> > jQuery(".sortable").sortable({ connectWith: ".sortable" }):
> >
> > Next I want to have some array (in php) like this:
> >
> > array(
> >     'block_1' => array(
> >          0 => 1,
> >          1 => 2,
> >          2 => 3
> >     ),
> >     'block_2' => array(
> >          0 => 4
> >     ),
> >     'block_3' => array(
> >          0 => 5,
> >          1 => 6
> >     )
> > )
> >
>
>
Try :

$('.sortable').sortable(
  {
    [...]
    update: function(event, ui) {
      $.post('/url.html',$(this).sortable('serialize'),
        function(data){
          [...]
        });
    }
  }
);

Cyril, Nethik

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to