Here is my code
e($ajax->dropRemote('sidebar',null,
array('url'=>'/portfolios/remoteSelect',
'update'=>'sidebar',
'with'=>"'data[Image][id]=' + encodeURIComponent(element.id)",
'complete'=>"new Effect.Highlight('sidebar');")));
The key here is the 'with' statement
does that help?
On 12/13/06, Gustoph <[EMAIL PROTECTED]> wrote:
>
> I have a similar problem and I've struggled to find any examples or
> info either. The Rails example (http://demo.script.aculo.us/shop) seems
> to get the DOM id of the dropped element by reading the params array in
> the controller.
> This doesn't work in cake. So I'm still stuck trying to read the id
> when dropped onto a div enhanced with dropRemote.
>
>
> naryga, have you been able to at least get the id of the dropped
> element into your controller?
>
> Can anyone else help?
>
>
> >
>
--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---