Stop automatic refreshing of a table?
Stop automatic refreshing of a table?
Luana_
Posts: 2Questions: 1Answers: 0
Hello there,
I use a javascript setInterval() function in order to constantly refresh a table I have. The refresh is made inside the setInterval() method, in this fashion:
tableName.ajax.reload(null, false);
At some point, I want the constant reloading to stop. Given a normal ajax request, I would call the abort() method, but I don't know how that that would apply in this case.
Any help would be appreciated.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Use
clearInterval
to clear your interval timer.Allan
This is exactly what I needed, I didn't know this method exists. Thanks a lot!