The Letter E Posted April 17, 2012 Share Posted April 17, 2012 jQuery('#login_form').submit(function(event){ alert('submitted'); event.preventDefault(); jQuery.post("login", jQuery("#login_form").serialize(), function(data){ alert('posted'); if( data.status == 1 ){ window.location.reload(); }else{ jQuery('.login_response').html('Incorrect username or password!'); } }, "json"); }); I've worked with this function before and as I recall this should work fine, and it also conforms with documentation. Perhaps I'm just overlooking some silly little detail. But, any help is appreciated. The script never makes it to the alert('posted'); line. THanks In Advance, E Quote Link to comment https://forums.phpfreaks.com/topic/261078-jquerypost-code-seems-legit-but-not-posting/ Share on other sites More sharing options...
The Letter E Posted April 17, 2012 Author Share Posted April 17, 2012 I'ma dumb. I had fatals on the file it was posting to. SOLVED! Quote Link to comment https://forums.phpfreaks.com/topic/261078-jquerypost-code-seems-legit-but-not-posting/#findComment-1338000 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.