jquery - ajax post response statusCode function not invoked -


im using ajax method reason status code return server after submit ignored..

this im reciving server in response

http/1.1 200 ok content-type: text/html; charset=utf-8 content-length: 4241 

method:

function submitform() {     $.ajax({         url : jquery("#contact-form").attr("action"),         type : jquery("#contact-form").attr("method"),         data : jquery("#contact-form").serialize(),         statuscode : {             200 : (function() {                 alert("yyyyyyyyaaaaaaaaaaaaa");             }),     400 : (function() {                 alert("eeeerrrrrrrrrr");             })         }     }); } 


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -