Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sazavi on Nov 02, 2007 11:27
open dhtmlx forum
smartrendering and GET

Hello, we've been prototyping with dhtmlxgrid and we've been very impressed with your work so far.

I do have a question about enableSmartRendering. It seems to ONLY let me do "GET" as opposed to "POST", and it seems to ignore any parameters I give it.

Is this an intended behavior or is there a way for me to perform smart rendering via POST? The same question goes for the loadXML() method.

Thanks
Answer posted on Nov 05, 2007 01:52
By default all load operations uses GET, while there is no way to control such behavior through API, underlaying layer supports POST as well, and it can be switched to POST by small modification

To switch ALL operation to POST , just update dhtmlxcommon.js

    dtmlXMLLoaderObject.prototype.loadXML=function(filePath,postMode,postVars,rpc){
       postMode=true; // this line need to be added


If you need switch some individual operation to POST , you can locate next command

    this.xmlLoader.loadXML(...);

by default command this commands take single parameter - called url, to switch it to post mode it can be updated as\

    this.xmlLoader.loadXML(old_url, true, post_vars);