You should probably just use the Js::submit() method instead, to actually 
submit the form and replace the div.

// assuming this is the customer_contacts/get view
echo $this->Form->create();
echo $this->Form->input('customer_id', array('id' => 'customer'));
echo $this->Form->input('customer_contact_id', array('id' => 
'customercontact')); 
echo $this->Js->submit('Submit form', array('update'=> '#customercontact'));
echo $this->Form->end();

Then when the user submits the form, it will actually POST to 
/customer_contacts/get and the resulting view will replace the 
#customercontact element.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to