09-23-2016, 09:22 PM
issue solved.......
It is a really weird cause. I added alert(data) inside the if (data == '0') loop, I find that it alerts 0 after 5 seconds, but your code already specified that it executes inside the if loop if data is not 0. So somehow the 0 from the posted data is not recognized as 0 by the if statement.....
I changed the if statement from if (data == '0') to be: if (isNaN(data))
everything works perfect now....Thank you so much for the code!
Angel
It is a really weird cause. I added alert(data) inside the if (data == '0') loop, I find that it alerts 0 after 5 seconds, but your code already specified that it executes inside the if loop if data is not 0. So somehow the 0 from the posted data is not recognized as 0 by the if statement.....
I changed the if statement from if (data == '0') to be: if (isNaN(data))
everything works perfect now....Thank you so much for the code!
Angel