I have a simple AJAX request, which sends information to the server, but something goes wrong and i receive only null. Can someone help me with this?
Source:
console.log(data);
console.log(typeof data);
$.ajax({
url: 'index.php',
type: 'POST',
dataType: 'script',
data: data,
beforeSend: function(){$.mobile.showPageLoadingMsg();},
success: function(data){$.mobile.hidePageLoadingMsg();}
});
Logs:
[2012, 7, 29, 9, 30]
object
Post
undefined undefined undefined undefined undefinedSource code
undefined=&undefined=&undefined=&undefined=&undefined=
Try changing:
to