del

issues a DELETE Ajax request to the server

promise del(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().del("data.php", { id : "11" }).then(function(data){
    console.log(data.text());
});

Details

The callback function takes 3 parameters:

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