JQuery Ajax Post/Get Not Sending Data But Retrieves Data From The Page -
for reason, jquery ajax isnt sending data. yes, similar question has been asked here none of answers works in case, tried both $.get
, $.post
or $.ajax
, specifying post
or get
, none works, undefined variable
error, ajax retrieve data sent page ie. load
ajax-user-summary.php page
$('#user-menu li:nth-child(1)').click(function(e) { $.post('includes/ajax-user-summary.php', { user_id: 10667546, user: "darlington akogo"}, function(status) { $('.user-record-interface').load("includes/ajax-user-summary.php"); }); });
$('#user-menu li:nth-child(1)').click(function(e) { var data = {user_id: 10667546, user: "darlington akogo"}; $.ajax( { url:'includes/ajax-patient-summary.php', data:data,success:function(status){ $('.patient-record-interface').load("includes/ajax-user-summary.php"); }); });
Comments
Post a Comment