Tuesday, May 3, 2011

Re: $this->Ajax->Form Question to avoid double submit

Forgot to update:

<?php echo $this->Ajax->Form('comment', 'post', array('update' =>
'msg', 'url' => array('action' => 'comment')), false); ?>

I added the false statement, which gives me the following html block:
<form id="form2120091090" accept-charset="utf-8" action="/members/
comment" method="post" update="msg" onsubmit="return false;">

But the comment call is still perforemd twice...

--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: