Results 1 - 8 of 8

IDBRequest

The request object does not initially contain any information about the result of the operation, but once information becomes available, an event is fired on the request, and the information becomes available through the properties of the IDBRequest instance.
API Database IDBRequest IndexedDB Interface Reference storage Storage

IDBRequest.error

A DOMError containing the relevant error. In Chrome 48 and later this property returns a DOMException because DOMError has been removed from the DOM standard. The following error codes are returned under certain conditions:
API Database Error IDBRequest IndexedDB Property Reference Storage storage

IDBRequest.onerror

The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store. Also included at the bottom is an onerror function that reports what the error was if the request fails. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBRequest IndexedDB onerror Property Reference Storage storage

IDBRequest.onsuccess

The following example requests a given record title, onsuccess gets the associated record from the IDBObjectStore (made available as objectStoreTitleRequest.result), updates one property of the record, and then puts the updated record back into the object store. For a full working example, see our To-do Notifications app (view example live.)
API Database IDBRequest IndexedDB onsuccess Property Reference Storage storage

IDBRequest.source

An object representing the source of the request, such as an IDBIndex, IDBObjectStore or IDBCursor.
API Database IDBRequest IndexedDB Property Reference source Source storage Storage