put

issues a PUT Ajax request to the server

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

Parameters

urlstringthe url to load
paramsobjectthe hash of parameters that need sending to the server
callbackfunctionthe callback function

Returns

promisedata "promise" object

Example

webix.ajax().put("data.php", { id : "11" }).then(function(data){
    //response
    console.log(data.text());
});

Details

The callback function takes 3 parameters:

  • text - the full text of the response
  • data - the object for getting data as plain text, JSON, and XML
  • xhr - an xmlHttpRequest object
See also
Back to top