There is an undefined error due Ajax request in jQuery. But it works locally. Error referencing in jquery1.3.2.js @ 3633 line
xhr.send(s.data);
My code is:
$.ajax({
type: "POST",
url: 'index.php',
data: "action=showpath&type=images&path=&default=1",
cache: false,
dataType: "html",
success: function(data){
$('#addr').html(data);
},
error:function (xhr, ajaxOptions, thrownError){
alert(xhr.status);
alert(thrownError);
}
});
alerts in code shows me (0, 'undefined');
What i am doing wrong?