Displaying Dynamic Stock Data in Table

Displaying Dynamic Stock Data in Table

cdogstu99cdogstu99 Posts: 1Questions: 0Answers: 0
edited February 2012 in General
Hello, i'm trying to replicate a table i have in google spreadsheets on my wordpress site.

IT is a table of stocks, and recent purchase price, with the current quote, close price, shares etc.

The data will change frequently and i need the ability to be able to edit easily, and have the current stock quote
pulled into the page.

Does anyone know if this can be done wtih Datatables, and any clues on how to accomplish this (i'm not really an expert programmer)

Thanks!

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    Sounds like a perfectly valid application of DataTables. What is your data source for the table's contents/ I'm presuming Ajax? In which case you could use the fnReloadAjax plug-in to do the reload: http://datatables.net/plug-ins/api#fnReloadAjax . The alternative is server-side processing, in which case you would just need to redraw the table.

    The final alternative, which is best if you want as close to real-time as possible would be to use a web-socket to get the new data and then use the API method fnUpdate to update the table as required.

    Allan
This discussion has been closed.