Hi,
I want to load grid based on some user inputs. I want to access form data using POST mathod (not using query string).
Could you pls give me some samples to achive this functionality?
Since dhtmlxGrid 2.0 you can use dhtmlxgrid_post.js extension. This extension will add post() method, which can be used same as grid.load, but will use POST instead of get
grid.post(url)
grid.post(url,post_string)
grid.post(url,post_string,call)
grid.post(url,post_string,call,type)
grid.post(url,post_string,type)
Where do we get documentation for what each argument is for??
Also, is there a different “flavor” of this that can be used instead of datagGrid.clearAndLoad(url) so that a post is used for that as well? I’m in serious need to get the post approach working. Thank.
Parameters of post() method are the same as at load() method.
docs.dhtmlx.com/doku.php?id=dhtm … bject_load
Also, is there a different “flavor” of this that can be used instead of datagGrid.clearAndLoad(url) so that a post is used for that as well?
You can use following code:
grid.clearAll();
grid.post(url);
Thanks.
While I confess to being less knowledgable in such matters than you folks, the post method appears to not work as desired. Arguments passed are still appearing in PHP’s $_GET collection, not the $_POST collection. As a result, my original problem remains (unable to support url strings > 2000+ characters).
Can you offer some advice on this?