Hey way to go mate, that worked like a charm. I figured the 'with'
option was probably needed but I hadn't realised that you could use
'element.id' to retrieve the information.
thanks tonnes!
--~--~-~--~~~---~--~~
You received this message because you are
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
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