patch

sends a PATCH AJAX request to the server

promise patch(string url, [object params,function callback] );
urlstringthe URL to load
paramsobjectthe object with parameters that need sending to the server
callbackfunctionthe callback function
promisedata "promise" object

Example

webix.ajax().patch("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 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