This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

update

Summary

Creates a structured clone of the value parameter.

Method of apis/indexeddb/IDBCursorapis/indexeddb/IDBCursor

Syntax

var object = object.update(value);

Parameters

value

Data-type
Blob

Return Value

Returns an object of type DOM NodeDOM Node

IDBRequest

An object representing the update request.

Notes

Remarks

This method can throw the following DOMException exceptions:

Exception properties Description

name: DataError
When an object store uses inline keys, this exception indicates that the key value of the update object does not match the key value of a corresponding record in the object store.

name: DataCloneError
code: DOMException.DATA_CLONE_ERR (25)
The data could not be copied.

name: InvalidStateError
code: DOMException.INVALID_STATE_ERR (11)
The update is not allowed for one of the following reasons:
  • the cursor was created using openKeyCursor.
  • the cursor is iterating to a new record.
  • the cursor has moved past the last record.

name: ReadOnlyError
The associated transaction is read-only.

name: TransactionInactiveError
The associated transaction is not active.

Note As of Internet Explorer 10, the code property is deprecated in favor of the name property, which is preferred for standards compliance and future compatibility.

Syntax

Standards information

Attributions