A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.dhtmlx.com/suite/ajax/api/ajax_put_method/ below:

Website Navigation


JavaScript Ajax - put Method

put()

sends a PUT request to the server

put<T>(url: string, data?: { [key: string]: any; } | string, config?: object): Promise<T>;

Parameters: Returns:

A "promise" of the data object.

Example

dhx.ajax.put(url, {id: "1", updated: true}).then(function (data) {
console.log(data);
}).catch(function (err) {
console.log(err);
});

Related sample: Data. Ajax PUT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4