how to implement javascript sourced Data
how to implement javascript sourced Data
![Rahis](https://secure.gravatar.com/avatar/af2c1c4d7ff841e9a6ba2bf7f6a16c0e/?default=https%3A%2F%2Fvanillicon.com%2Faf2c1c4d7ff841e9a6ba2bf7f6a16c0e_200.png&rating=g&size=120)
Hello.
You guys are doing real good.Let's get to the point.I saw your example post for javascript sourced data.But not a real time implementation.Im getting data through ajax and im formatting the data into javascript sourced data
For Eg:
My data is [1,Emp1],[2,Emp2];
How will i format this array into javascript sourced data.
Any Help is appreciated.
This discussion has been closed.
Answers
Assuming the DataTable already exists, use
rows.add()
. If it doesn't exist already usedata
.Moreover, if you want to do a real time table, a web socket handler that calls
row.add()
,row().data()
androw().remove()
are likely the API methods you'll need.Allan