Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by techtigre on Mar 31, 2009 13:08
open dhtmlx forum
Ajax Post functionality

Team,

I have need to transform 15 or more text inputs on an html page to their corresponding url?param1=value1&param2=value2.  I use
the Form.serialize() function from the prototype.js library and its output is then appended to the url in this fashion:

    var formparams = Form.serialize('myform');
    var loadUrl = urlLocation() + "someaction.do?actionType=applySchdPath&action=add&" + formparams;
    dhtmlxAjax.post(loadUrl , null, functionCall);

My question is this:  seeing as though my formparams string could be VERY long in some instances, will your dhxajax.post() method be able to handle the huge
url that could be passed to it?  Is it going to behave just like a normal form/submit/post on a page? 


Answer posted by Alex (support) on Apr 01, 2009 03:28

In case of post request the parameters must be put into the second parameter. 

Please, see the sample http://dhtmlx.com/docs/products/dhtmlxAjax/samples/samples_of_usage/send_request.html