s_avinash_s Posted October 11, 2018 Share Posted October 11, 2018 Hi I have a table , In first column i need to update a dynamic data in rotating format for 5 values every 1 sec. I mean like, for 1 sec temp1 will be displayed, for next second temp2 should be dispalyed, for thirs second, temp3 should be displayed etc. How to proceed with this Link to comment Share on other sites More sharing options...
Funce Posted October 11, 2018 Share Posted October 11, 2018 One possible implementation is to have a counter that's incremented each interval. Then the corresponding variable is displayed. Link to comment Share on other sites More sharing options...
dsonesuk Posted October 12, 2018 Share Posted October 12, 2018 IF you insert the data into a element, you can use that elements index to remove the last if present, move the other elements and it content to the next, and insert new at top, you don't require counter as such, just decrementing loop to move values down each second; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now