put

sends a PUT AJAX request to the server

promise put(string url, [object params,function callback] );
urlstringthe URL to load
paramsobjectthe object with parameters that need sending to the server
callbackfunctionthe callback function
promise"promise" of the data 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 from the server
  • data - the object for getting data as plain text, JSON, and XML
  • xhr - an xmlHttpRequest-object
See also
Back to top