Check documentation for the latest version 6.0 of dhtmlxSuite put DHTMLX Docs

put

performs an async-PUT ajax request

void put(string url, [string params,function callback] );

Parameters

urlstringurl to the server side
paramsstringoptional, request params
callbackfunctionoptional, a function to call after the response is loaded

Example

// simple data sending w/o post params
dhx.ajax.put("server.php?keep_alive=1");
 
// simple data sending with params
dhx.ajax.put("server.php", "keep_alive=1&version=std");
 
// data sending w/o params with callback
dhx.ajax.put("server.php", function(){
    // your code here
});
 
// data sending with params and callback
dhx.ajax.put("server.php", "keep_alive=1&version=std", function(){
    // your code here
});

Change log

added in 4.1

Back to top