As of jQuery 1.5, a XMLHttpRequest (jqXHR) object is returned by $.ajax(). This is the object you assign to your var msg, and later put in the alert. Hence you get “alert as object” as you describe it. If you want to alert what is returned by the server, do:
success: function (data, status) {
$("#Progress").hide();
$("#AckMsg").html(data);
alert(data);
}
If this alerts data as empty or undefined. Check your ajax call URL.
url: '../pages/registration.php',
I believe using a relative URL like this will make a ajax request to http://www.yoursite.com/../pages/registration.php for example. This is most likely not what you want to do.
0
solved jQuery not getting reply when using asynchronous