php - $.ajax success function returns null -
I have a basic login form set and I am sending two variables (login + password) using the AJAX request A separate page which, accordingly, checks status and gives back. ('Submit', function () {var key = $ (this), url = "textlogin.php", type = that.attr ('method'), data = {}, that.find ('[name ] '(Value (index, value) {var key = $ (this), name = that.attr (' name '), value = that.val (); data [name] = value;}); $ .jax ({url: url, type: type, data: data, breakthrough: work (feedback) {if (response == "") {$ ('# login_err'). Html ("its tap");} and {$ ('# Login_order') .html (feedback);}}}); refund;});
is not working and the Here is sample code for Ajax. Please try it out. If you are using Mozilla Firefox, please add Firebug, then please add Firebug. After installing Firebug, open it. You can now find the Console tab. enable it. Now when you run AJAX you can see it here. And suppose that if you pass a straight array, then use this function because PHP is a better way to use the implode function. Please answer me if this works. success function always returns empty space. The code was working fine until I logged
AJAX and
jquery dialog . I tried: 1. Setting up
content-type 2. Setting
dataType 3. Using $ .post and what not.
$ Ajax ({Url: "login.php?", Data: "user name =" + username "and password =" + password, success: function (data) {}});
Comments
Post a Comment