On Tue, Oct 6, 2009 at 12:34 PM, Celso <[email protected]> wrote:
>
> I need pass something like 'updateSelect/'+this.getValue()
>
> <?php
> $remoteFunction = $ajax->remoteFunction(
> array(
> 'url' => array( 'controller' => 'entradaItens', 'action'
> => 'updateSelect'),
> 'update' => 'div-form-detalhe')
> );
You're using "remoteFunction" and "onchange".
Why don't you do a plain $ajax->observeField?
echo $form->input('Model.field', array('type'=> 'select', 'options'=>
$options));
...
echo $ajax->observeField('ModelField', array(
'url'=> '/your/action'
, 'update'=> 'idyourelement'
, ...
));
When the select's value change, the value
corresponding to the Model.field will be
available in your action.
Best regards.
--
MARCELO DE F. ANDRADE
Belem, PA, Amazonia, Brazil
Linux User #221105
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---