Ajax Call Cannot Find PHP File
I am doing a ajax call , but its giving a error saying 404 file not found. $.ajax({ type : 'POST', url : 'app/lib/functions.php',
Solution 1:
maybe try it with:
$.ajax({
type : 'POST',
url : '../../app/lib/functions.php',
data : data,
success : function(data) {
}
});
or
$.ajax({
type : 'POST',
url : '../app/lib/functions.php',
data : data,
success : function(data) {
}
});
Solution 2:
I don't use AJAX much but I believe it should be pointing to a route, not directly to a file. That path would be relative and never actually resolve.
Post a Comment for "Ajax Call Cannot Find PHP File"