Try:
 <?= $ajax->dropRemote('droppable_id',
                                 array('accept'=>'title'),
                                 array('url'=>'/mycontroller/
myaction/',
 
'with'=>'{draggedid:element.id}')
                                         'update'=>'droppable_id')); ?
>

Then you can use $this->params['form']['draggedid'] in your
controller.

On Apr 12, 8:08 am, "Derim" <[EMAIL PROTECTED]> wrote:
> Hi
>
> I want to use drag and drop feature in my new CakePHP project.
> I spent most the day today trying to figure out how controller action,
> called by  $ajax->dropRemote can get id of the draggable element.
> Searching on google and manual didn't helped.
>
> Here is simplified version of code I use for dropRemote.
> <?= $ajax->dropRemote('droppable_id',
>                                 array('accept'=>'title'),
>                                 array('url'=>'/mycontroller/myaction/',
>                                         'update'=>'droppable_id')); ?>
> Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to