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

How to send Function EditableGrid table name? #143

Open jwillis44 opened 8 years ago

jwillis44 commented 8 years ago

I'm trying to use editable grid, using a sql database and JSON data load with basic demo example. I have it working if I manually enter the table name I want to within the new EditableGrid and loadJSON functions. But what I would like to do is send it a table name from the main page in my case index.php. Is there any way to pass a variable of my table_name to new DatabaseGrid(); ? I'm using an html form to send the table_name with POST to index.php (index.html from demo with addition of $Table_Name= $_POST['table_name'] ) Thank You, Joe WIllis