Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Martin Allchin on Jul 14, 2009 07:40
open dhtmlx forum
grid.loadXML POST request

Hi,

I am trying to do a loadXML on a grid via a POST, is this possible?

I can do a get like so:

ajaxExt_NumGrid.loadXML('foo.php?NUMBERS='+selectedRows,ajaxExt_NumGridCalculateFooter);

I was hoping I could do the same as an AJAX request and simply specify parameters as the second parameter like so:

ajaxExt_NumGrid.loadXML('foo.php','NUMBERS='+selectedRows,ajaxExt_NumGridCalculateFooter);

but it does a GET not POST :-(
Answer posted by Alex (support) on Jul 15, 2009 02:18

Hello,

you can try to use dhtmlxgrid_post.js extenstion:

ajaxExt_NumGrid.post("foo.php","NUMBERS="+selectedRows, ajaxExt_NumGridCalculateFooter);


Answer posted by Martin Allchin on Jul 15, 2009 02:28
Thank you, that works great.

Is it possible to do a POST for updateFromXML too? (I have just asked this in another query ;-)

Kind Regards,

Martin

Answer posted by dhxSupport on Jul 15, 2009 04:18