Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140705

Pass data to html table with socket io

$
0
0

I have consume data from API and that data will be displayed realtime in a table using socket io, where it has a data return in the form of an object, like this the examples :

"data": [
    {
      "name": "e7876319e4",
      "status_waiter": "Ready"
    },
    {
      "name": "e787631334",
      "status_waiter": "Ready"
    }
]

so I want to display that data in an html table, where if there is a change in the data the table must also change, and there I do the interval settings, then how do I do it?

I was tried use $('#status').append(data) that is success but but it keeps the data adding even though there are no changes. Thanks in advice :)


Viewing all articles
Browse latest Browse all 140705

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>