del
sends a DELETE AJAX request to the server
promise del(string url, [object params,function callback] );
| url | string | the URL to load |
| params | object | the object with parameters that need sending to the server |
| callback | function | the callback function |
| promise | "promise" of the data 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 from the server
- data - the object with methods for getting data as plain text, JSON, and XML
- xhr - an xmlHttpRequest-object
See also
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support,
connect with other developers, and share your feedback there.