Petr, i can't understand your problem... but i missed to skip the 'view
render' so ... the function goes like this:

function order(){
  $ids= $this->params['form']['items'];
  $i = 1;
  foreach($ids as $id){
    $this->Item->id = $id;
    $this->Item->saveField('position', $i++);
  }
$this->autoRender = false;
}

this will save you some error messages in the responseText...
If you explain your problem again.. i might be able to help

Your question : check out the scriptaculous sortable options and
examples.
Sore but i haven't got the time to go into details now.. got to work.
:)


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to