aestet
aestet

Reputation: 357

Using jsGrid as a local standalone application

I'm looking for ways to use jsGrid (http://js-grid.com) as local application. I've found basic.html in demos folder from git-project and I noticed that changes made to the example datagrid are not committing (after refreshing a local copy of basic.html all changes revert to initial values). As far as I understand changes made to the table are in memory and main script doesn't save them to db.js where datasource (json-dictionary clients) is located. And as confirmation I found that implementation of updatingClient-function in db.js is empty (due to obvious in-memory realization).

Questions I want to ask:

1) How could I make this application to use external but local datasource? Should it be some kind of this pseudocode in db.js: db.clients = csv2json('clients.csv') (assuming there is an additional jquery-plugin to do this task) ? Are there any more convenient approaches?

2) If the first question is reasonable how should I implement the updateClient function considering using by multiple users simultaneously? Is it possible?

3) I need some kind of time logging of actions performed on the datagrid. Should it be implemented by binding certain elements to log-functions on main page via click events? If so, how could I get time stamps from these functions?

Upvotes: 0

Views: 267

Answers (1)

cssyphus
cssyphus

Reputation: 40038

If you install xampp, you will have apache, PHP and MySQL - all local.

Otherwise, you can install sqlite or Codernitydb (better), which are local databases that do not require Internet access.

Upvotes: 0

Related Questions