Skip to content

Tag: settimeout

setTimeout with ajax

I am stuck,I can’t use the setInterval function with ajax. this if a simplified version of what I want my code to do. As said in the code,I tried using setTimeout too but it didn’t work,javascript just ignores the funcion setInterval or setTimeout. Answer setInterval requires the first parameter t…

set timeout to event listener function

I have an event listener I would like to have a timeout for this event listener. So let’s say that if it doesn’t receive any event called ‘evt’ in 3 seconds I would like to have a notification that it timed out. I tried with the setTimeout function but so far I don’t manage to pa…