I presume you have your select such as :

echo $form->input('model.field', array('type' => 'select', 'options'
=> $options));

What you can do is :

$v = $ajax->remoteFunction(array('url' => '/controller/action',
'update' => 'divtoupdate', 'with' => 'Form.serialize()'));
echo $form->input('model.field', array('type' => 'select', 'options'
=> $options, 'onChange' => $v));

That should send your form, when you change the value of the select ..
hth

On May 16, 6:20 pm, Dovdimus Prime <[EMAIL PROTECTED]> wrote:
> I'm desperate to get this working to I'm trying out your solutions,
> Francky.
>
> Assigning the onchange of the select to the onclick of the button
> didn't work. It just ran the onlick method without submitting the
> form.
>
> I can see the observeField one would work, but it's not my top choice
> because it's not immediate (I believe the maximum frequency of
> observation is 1/sec).
>
> Can you explain the ajax->remoteFunction a little more because I'm not
> sure I see how it works?
>
> Thanks
>
> David
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to