I have following code:
var ajaxOpts = {
type: "post",
url: "save.php",
data: {
act: "A",
url: jQuery("#url").val()
/*callback: "?",*/
},
dataType: "jsonp",
complete: function(comp, code){
alert('Data Complete '+code);
},
error: function(error){
alert('Failure Message');
},
success: function(data, textStatus) {
alert(textStatus);
}
};
jQuery.ajax(ajaxOpts);
When I run it, ‘complete’ function is executed and ALERT shows ‘Success’ code, but success function is not executed.
Can some one guide me what is going wrong.
Thanks in advance