![]() |
Sample: dhtmlxAjax | Sending GET/POST request with dhtmlxAjax | dhtmlxAjax main page |
Add your own parameters and submit AJAX Request*. Output will contain xml with all parameters server got.
<script></script>//function for processing response function outputResponse(loader){ if(loader.xmlDoc.responseXML!=null) alert(loader.doSerialization()); else alert("Response contains no XML"); } //send async GET request dhtmlxAjax.get("process.php?param1=value¶m2=value",outputResponse); //send async POST request dhtmlxAjax.post("process.php","param1=value¶m2=value",outputResponse); //send sync GET request var loader = dhtmlxAjax.getSync("process.php?param1=value¶m2=value"); //send sync POST request var loader = dhtmlxAjax.postSync("process.php","param1=value¶m2=value");
© DHTMLX LTD. All rights reserved |