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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -