Re: AJAX InPlaceEditor with collection?

2007-10-31 Thread silid
Hi Alberto, You need to put the collection in as an array for each item with the id and the displayed name as below: editor( 'edit', '/cars/ajax_update/' . $car['Car']['id'], array( 'update' => 'edit', 'type' => 'synchronous', 'collection' => array( array($id

Re: AJAX InPlaceEditor with collection?

2007-10-31 Thread silid
'collection' => array(array('0', 'Ferrari'), array('1', 'Lamborghini')) Si On Sep 19, 1:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm using an AJAX in-place-editor inside my project; it's the standard > one provided by Cake and Scriptacolous; I have a problem: I have to

Re: AJAX InPlaceEditor with collection?

2007-09-19 Thread fr3nch13
maybe try this: editor('edit', '/cars/ajax_update/' . $car['Car'] ['id'], array('update' => 'edit', 'type' => 'synchronous', 'collection' => array('1'=>'Ferrari', '2'=>'Lamborghini'))); ?> where you define the keys in your collection array. not tested but it may work for you. On Sep 19, 9:48 am

AJAX InPlaceEditor with collection?

2007-09-19 Thread [EMAIL PROTECTED]
Hi all, I'm using an AJAX in-place-editor inside my project; it's the standard one provided by Cake and Scriptacolous; I have a problem: I have to use a collection of elements inside a SelectBox. Here's the code: editor('edit', '/cars/ajax_update/' . $car['Car'] ['id'], array('update' => 'edit'