Questions tagged as 'setinterval'

1
answer

Run two functions in setTimeout

Very good, I have this code in which I intend that after inactivity, redirected to login.html var nameTime; function ini() { nameTime = setTimeout('location="login.html"',5000); } function parar() { clearTimeout(nameTime); nameTime...
asked by 17.01.2018 / 09:59
0
answers

Service Worker does not work when using setInterval in AppComponent

I am using Angular 6. I have a problem with service worker. I want to check in my whole application when there is internet to execute a function, for which I create a setInterval inside the constructor of my AppComponent but doing tests I notice...
asked by 17.12.2018 / 23:58
1
answer

How to stop waiting for an element when finding it (Javascript)

I have a question. I have the following code to wait for these elements and assign them those values. The problem is that the page is in loop thanks to the change event. I would like to know how to stop the timeout after having found those eleme...
asked by 10.07.2018 / 04:39
1
answer

How do I setInterval with Ionic?

My problem is that I do not know how to do a setInterval on Ionic3. I put the following in the .ts of my page: export class ClickerPage { public dinero=0; public produccion=1; constructor(public navCtrl: NavController) { setInterval(functi...
asked by 22.04.2018 / 20:58
2
answers

Problem with boolean in setInterval - vuejs

I have a boolean called isFilter in which when it is true it does one function and if not the other function. This I have in the created so that every 30 seconds I return to execute the function: created() { this.load(); setInterval...
asked by 22.04.2018 / 15:27