Note that there are some explanatory texts on larger screens.

plurals
  1. POForm submission not saving on Firefox
    text
    copied!<p>I have this project that saved just fine when I used Chrome or IE but when I used Firefox it appeared to stop working when I submitted a form. I use a SchedulesController, call edit_member, and I used JsHelper to call another action, edit_test. In edit_test, I used JsHelper to submit the form.</p> <p>edit_member view file:</p> <pre><code>echo $this-&gt;Form-&gt;create('Schedule', array('id'=&gt;"ScheduleEditMemberForm", 'action' =&gt; 'edit_member',$id,'default' =&gt; false)); $data = $this-&gt;Js-&gt;get("#ScheduleEditMemberForm")-&gt;serializeForm(array('isForm' =&gt; true, 'inline' =&gt; true)); $this-&gt;Js-&gt;get("#ScheduleEditMemberForm")-&gt;event( 'submit', $this-&gt;Js-&gt;request( array('action' =&gt; 'edit_test',$id,$userId), array( 'update' =&gt; '#s', 'data' =&gt; $data, 'async' =&gt; true, 'dataExpression'=&gt;true, 'method' =&gt; 'POST', ) ) ); echo $this-&gt;Form-&gt;input('dates', array( 'id'=&gt;'datepicker', 'type'=&gt;'text', 'label' =&gt; 'Work Date', )); echo $this-&gt;Form-&gt;end('Start'); </code></pre> <p>edit_test</p> <pre><code>$data = $this-&gt;Js-&gt;get("#ScheduleEditTestForm")-&gt;serializeForm(array('isForm' =&gt; true, 'inline' =&gt; true)); $this-&gt;Js-&gt;get("#ScheduleEditTestForm")-&gt;event( 'submit', $this-&gt;Js-&gt;request( array('action' =&gt; 'compute',$id,$userId), array( 'update' =&gt; '#s', 'data' =&gt; $data, 'async' =&gt; true, 'dataExpression'=&gt;true, 'method' =&gt; 'POST', 'div' =&gt; false ) ) ); echo $this-&gt;Form-&gt;create('Schedule', array('action' =&gt; 'edit_test',$id,$userId)); </code></pre> <p>In edit_test, I'm calling compute action to save data on the database, but I don't know why it can't save when using Firefox. I also added this on my view file:</p> <pre><code>echo $this-&gt;Js-&gt;writeBuffer(); </code></pre> <p>I hope someone knows about this situation, and can help me.</p> <p>CakePHP 2.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload