LWS Generic Table demo |
This is a demo of lws generic table, using a protocol plugin
"protocol-lws-table-dirlisting". It shows a directory listing,
but unlike an oldstyle directory listing done on the
server side with a script, this is static html that connects
back to the server with a websocket, and gets live JSON from
that.
Actually the static html is extremely simple, since it uses lwsgt, LWS Generic Table, JS include on the client-side that handles all the table generation from a template sent in JSON over the ws link. It means there is no custom JS required clientside either. It's just CSS, this text and a call to initialize lwsgt with the appropriate ws protocol. |
There's no problem having multiple independent instances per page... |