Answer the question
In order to leave comments, you need to log in
Chrome console is misleading Maximum call stack size exceeded?
There is a function like
$(document).ready(function(){
test_call();
});
function test_call(){
setTimeout(function(){
$.post(
"ajax/time_test.php",
function (data) {
console.log(data);
if(data=='close'){
location="exit.php";
}
else{
test_call();
}
}
);
},60000);}
Answer the question
In order to leave comments, you need to log in
$(document).ready(function(){
test_call();
});
function process_response(data) {
console.log(data);
if(data == 'close'){
location = "exit.php";
}
else{
test_call();
}
}
function test_call(){
setTimeout(function(){
$.post("ajax/time_test.php", process_response );
},60000);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question