setTimeout eval , simulate_ajax_call , eval , .
As the other two answers show, the best way to solve the problem is to use the transfer function setTimeout, but carefully remove the parentheses because you do not want to accidentally call the function immediately.
Perhaps your code would work if you declared simulate_ajax_callin a global scope. The brackets would be correct in this case, although the string version setTimeoutis still a bad idea.
source
share