I need to call a php file through ajax. I tried following:
<html>
<script type="text/javascript">
setInterval(function(){
test();
},3000);
function test(){
$.ajax({
type: "POST",
url: "GetMachineDetail.php",
data: "{}",
success: function(response){
alert("suceccess");}
});
}
It's simple javascript jquery calling... But I've got an ajax not found error.
Question: How could I solve this issue?