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
795 stars 272 forks source link

Directory issue due to strip slashes #107

Open jamesmorris7 opened 9 years ago

jamesmorris7 commented 9 years ago

Hi, great tool, love the simplicity and speed. I have one small issue.

in demo.js the function below is needed to return the grid, but it is auto stripped of slashes, so I can't move loaddata.php to a separate directory.

DatabaseGrid.prototype.fetchGrid = function() { // call a PHP script to get the data this.editableGrid.loadJSON("loaddata.php?db_tablename=demo"); };

To use loaddata.php in MVC, i need it in another directory.I can't find the strip slashes function to prevent this so the JS and the PHP have to be in the same folder, not ideal.

Any ideas?