Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It seems to me that you use incorrect Form Submission plugin <code>ajaxSubmit()</code>. If the code of <code>ajaxSubmit</code> correspond to the code from <a href="http://be.twixt.us/jquery/formSubmission.php" rel="nofollow noreferrer">http://be.twixt.us/jquery/formSubmission.php</a>, parameters like {error:..,} will be ignored by <code>ajaxSubmit()</code>.</p> <p><code>ajaxSubmit()</code> use $.post to make ajax request, so you can define you <code>error</code> callback by <code>jQuery.ajaxSetup()</code> (see <a href="http://api.jquery.com/jQuery.ajaxSetup/" rel="nofollow noreferrer">http://api.jquery.com/jQuery.ajaxSetup/</a> and <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow noreferrer">http://api.jquery.com/jQuery.ajax/</a>)</p> <p>UPDATED: How I can see from the source of plugin which you used (see <a href="http://github.com/malsup/form/raw/master/jquery.form.js?v2.43" rel="nofollow noreferrer">http://github.com/malsup/form/raw/master/jquery.form.js?v2.43</a>) $.ajax(options); will be use only in else part of the following if statement:</p> <pre><code>if (files.length &amp;&amp; options.iframe !== false) || options.iframe || found || multipart) { if (options.closeKeepAlive) $.get(options.closeKeepAlive, fileUpload); else fileUpload(); } else $.ajax(options); </code></pre> <p>so in all other cases you can not use <code>error</code> as a parameter of <code>ajaxSubmit()</code>. So you can set <code>{closeKeepAlive: true}</code> as a parameter of <code>ajaxSubmit() and don't forget to set before</code>error<code>callback by</code>jQuery.ajaxSetup()` as I described before.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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