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.
I have tried to run the sql demo, but with no success. I prettified the js files to see what was going on, and I seem to have to add require("config.php") and require("EditableGrid.php") into loadata.php to get it to return sensible xml, but it then it enters:
EditableGrid.prototype._callback = function(b, a, c) {
if (c) {
c.call(this)
} else {
if (this.serverSide) {
this.refreshGrid = function(e) {
e = e || this.lastURL;
this.lastURL = e;
var d = e + (e.indexOf("?") >= 0 ? "&" : "?") + "page=" + (this.currentPageIndex + 1) + "&filter=" + (this.currentFilter ? encodeURIComponent(this.currentFilter) : "") + "&sort=" + (this.sortedColumnName && this.sortedColumnName != -1 ? encodeURIComponent(this.sortedColumnName) : "") + "&asc=" + (this.sortDescending ? 0 : 1);
var f = function() {
EditableGrid.prototype.refreshGrid.call(this)
};
if (b == "xml") {
this.loadXML(d, f)
} else {
this.loadJSON(d, f)
}
}
}
this.lastURL = a;
this.tableLoaded()
}
};
where finds that this.ServerSide is not set and exits without loading the table. I presume others don't have all this trouble, so any hints what I might be doing wrong be welcome.
I have tried to run the sql demo, but with no success. I prettified the js files to see what was going on, and I seem to have to add require("config.php") and require("EditableGrid.php") into loadata.php to get it to return sensible xml, but it then it enters:
EditableGrid.prototype._callback = function(b, a, c) { if (c) { c.call(this) } else { if (this.serverSide) { this.refreshGrid = function(e) { e = e || this.lastURL; this.lastURL = e; var d = e + (e.indexOf("?") >= 0 ? "&" : "?") + "page=" + (this.currentPageIndex + 1) + "&filter=" + (this.currentFilter ? encodeURIComponent(this.currentFilter) : "") + "&sort=" + (this.sortedColumnName && this.sortedColumnName != -1 ? encodeURIComponent(this.sortedColumnName) : "") + "&asc=" + (this.sortDescending ? 0 : 1); var f = function() { EditableGrid.prototype.refreshGrid.call(this) }; if (b == "xml") { this.loadXML(d, f) } else { this.loadJSON(d, f) } } } this.lastURL = a; this.tableLoaded() } }; where finds that this.ServerSide is not set and exits without loading the table. I presume others don't have all this trouble, so any hints what I might be doing wrong be welcome.