webismymind / editablegrid

EditableGrid is an open source Javascript library aimed at turning HTML tables into advanced editable components. It focuses on simplicity: only a few lines of code are required to get your first table up and running.
http://www.editablegrid.net
Other
796 stars 271 forks source link

work with multiple tables #82

Closed TasPats closed 8 years ago

TasPats commented 9 years ago

I seek for JavaScript library for CRUD application for a while and found EditableGrid as perfect solution

but it works perfectly with one MySQL table (implemented from your MySQL example) when I need to work with multiple tables, I run in some problems - demo.js is tailored for very concrete table (ok, I rework this for universal solution) - so add.php and load.php

how to deal with this is best? make separate .php files for every table or make some abstraction to operate all tables with one add.php, load.php file

also (but it may be my limited knowledge) I can't work with tables, if it main index not named as 'id'

jybeaujean commented 9 years ago

Hi,

I think that you should work with an MVC model. So the javascript calls every appropriate controllers that manage all CRUD operations.

TasPats commented 9 years ago

yes, I think that it is right way, but I don't think that my qualifications is not so high, that my solution is suitable for others and therefore I don't want go far from original 'editablegrid' team source

alphokinyua commented 8 years ago

Am having the same problem working with different MySQL tables. I have created different loaddata.php files for each table, the data loads fine but it does not update new values. it shows that update was successful by displaying the cool green color but, on refresh it shows the old values. Please help me work with multiple MySQL tables. Urgently need help am stuck and I find EditableGrid to be a powerful and user friendly library for CRUD operations. Please help };