Documentation

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

See also

Example

webix.ajax().del("data.php", { id : "11" }, function(text, xml, xhr){
    //response
    alert(text);
});

Details

The callback function takes 3 parameters:

  • text - the full text of the response
  • xml - the response parsed as xml, if applicable
  • xhr - an xmlHttpRequest object
Back to top