jQuery form plugin - Uncaught TypeError on file upload -


there no problem when don't select file upload, when fill other inputs post form, it's working. when choose file image upload post it, i'm getting error, when folder, see file uploaded. javascript failed.

jquery.form.js:357 uncaught typeerror:  object function (a,b){return new d.fn.init(a,b,g)} has no method 'handleerror' 

here code,

<form id="employeeaddform" class = "classform" enctype="multipart/form-data" action="inc/employeeadd.php"  method="post">         <p><input type="file" size="32" name="my_field" value="" /></p>         <p class="button"><input type="hidden" name="action" value="image" />          <label for="nname">personal name : </label>          <input name="nname" id="nname" type="text" tabindex="11" />         <br />          <label for="ninformation">information : </label>         <textarea id="ninformation" name="ninformation"></textarea>          <div align="center">             <input id="button1" type="submit"/>              <input id="button2" type="reset" />         </div> </form>  <script type="text/javascript"> $(document).ready(function(){         var options_employeeadd = {                  beforesubmit:  validate_employeeadd,  // pre-submit callback                  success:       showresponse_employeeadd  // post-submit callback                                     };          $('#employeeaddform').ajaxform(options_employeeadd); });          function validate_employeeadd(formdata, jqform, options) {...}          function showresponse_employeeadd(responsetext, statustext, xhr, $form)  {...}  

the latest version of jquery form doesn't use 'handelerror'. download here: https://github.com/malsup/form/blob/master/jquery.form.js


Comments

Popular posts from this blog

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -