The request object does not initially contain any information the result of the operation, but once information becomes available, event is fired on the request, and the information becomes available the properties of the IDBRequest instance.
The request object does not initially contain any information the result of the operation, but once information becomes available, event is fired on the request, and the information becomes available the properties of the IDBRequest instance.
(error this)
Property.
A dom.DOMError
containing the relevant error. In Chrome 48+/Firefox
this property returns a dom.DOMException
because DOMError has
removed from the DOM standard. The following error codes are
under certain conditions:
var myError = request.error;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error
Property. A `dom.DOMError` containing the relevant error. In Chrome 48+/Firefox this property returns a `dom.DOMException` because DOMError has removed from the DOM standard. The following error codes are under certain conditions: `var myError = request.error;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error`
(onerror this)
Property.
The following example requests a given record title, onsuccess
the associated record from the idb.IDBObjectStore
(made available
objectStoreTitleRequest.result), updates one property of the
and then puts the updated record back into the object store.
included at the bottom is an onerror function that reports what
error was if the request fails. For a full working example, see
To-do Notifications app (view example live.)
request.onerror = function(event) { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror
Property. The following example requests a given record title, onsuccess the associated record from the `idb.IDBObjectStore` (made available objectStoreTitleRequest.result), updates one property of the and then puts the updated record back into the object store. included at the bottom is an onerror function that reports what error was if the request fails. For a full working example, see To-do Notifications app (view example live.) `request.onerror = function(event) { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror`
(onsuccess this)
Property.
The following example requests a given record title, onsuccess
the associated record from the idb.IDBObjectStore
(made available
objectStoreTitleRequest.result), updates one property of the
and then puts the updated record back into the object store.
a full working example, see our To-do Notifications app (view
live.)
request.onsuccess = function(event) { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess
Property. The following example requests a given record title, onsuccess the associated record from the `idb.IDBObjectStore` (made available objectStoreTitleRequest.result), updates one property of the and then puts the updated record back into the object store. a full working example, see our To-do Notifications app (view live.) `request.onsuccess = function(event) { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess`
(ready-state this)
Property.
The idb.IDBRequestReadyState
of the request, which takes one
the following two values:
var currentReadyState = request.readyState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState
Property. The `idb.IDBRequestReadyState` of the request, which takes one the following two values: `var currentReadyState = request.readyState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState`
(result this)
Property.
any
var myResult = request.result;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result
Property. any `var myResult = request.result;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result`
(set-error! this val)
Property.
A dom.DOMError
containing the relevant error. In Chrome 48+/Firefox
this property returns a dom.DOMException
because DOMError has
removed from the DOM standard. The following error codes are
under certain conditions:
var myError = request.error;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error
Property. A `dom.DOMError` containing the relevant error. In Chrome 48+/Firefox this property returns a `dom.DOMException` because DOMError has removed from the DOM standard. The following error codes are under certain conditions: `var myError = request.error;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/error`
(set-onerror! this val)
Property.
The following example requests a given record title, onsuccess
the associated record from the idb.IDBObjectStore
(made available
objectStoreTitleRequest.result), updates one property of the
and then puts the updated record back into the object store.
included at the bottom is an onerror function that reports what
error was if the request fails. For a full working example, see
To-do Notifications app (view example live.)
request.onerror = function(event) { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror
Property. The following example requests a given record title, onsuccess the associated record from the `idb.IDBObjectStore` (made available objectStoreTitleRequest.result), updates one property of the and then puts the updated record back into the object store. included at the bottom is an onerror function that reports what error was if the request fails. For a full working example, see To-do Notifications app (view example live.) `request.onerror = function(event) { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onerror`
(set-onsuccess! this val)
Property.
The following example requests a given record title, onsuccess
the associated record from the idb.IDBObjectStore
(made available
objectStoreTitleRequest.result), updates one property of the
and then puts the updated record back into the object store.
a full working example, see our To-do Notifications app (view
live.)
request.onsuccess = function(event) { ... };
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess
Property. The following example requests a given record title, onsuccess the associated record from the `idb.IDBObjectStore` (made available objectStoreTitleRequest.result), updates one property of the and then puts the updated record back into the object store. a full working example, see our To-do Notifications app (view live.) `request.onsuccess = function(event) { ... };` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/onsuccess`
(set-ready-state! this val)
Property.
The idb.IDBRequestReadyState
of the request, which takes one
the following two values:
var currentReadyState = request.readyState;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState
Property. The `idb.IDBRequestReadyState` of the request, which takes one the following two values: `var currentReadyState = request.readyState;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/readyState`
(set-result! this val)
Property.
any
var myResult = request.result;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result
Property. any `var myResult = request.result;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/result`
(set-source! this val)
Property.
An object representing the source of the request, such as an
idb.IDBObjectStore
or idb.IDBCursor
.
var IDBIndex = request.source; var IDBCursor = request.source; var IDBObjectStore = request.source;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source
Property. An object representing the source of the request, such as an `idb.IDBObjectStore` or `idb.IDBCursor`. `var IDBIndex = request.source; var IDBCursor = request.source; var IDBObjectStore = request.source;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source`
(set-transaction! this val)
Property.
An idb.IDBTransaction
.
var myTransaction = request.transaction;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction
Property. An `idb.IDBTransaction`. `var myTransaction = request.transaction;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction`
(source this)
Property.
An object representing the source of the request, such as an
idb.IDBObjectStore
or idb.IDBCursor
.
var IDBIndex = request.source; var IDBCursor = request.source; var IDBObjectStore = request.source;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source
Property. An object representing the source of the request, such as an `idb.IDBObjectStore` or `idb.IDBCursor`. `var IDBIndex = request.source; var IDBCursor = request.source; var IDBObjectStore = request.source;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/source`
(transaction this)
Property.
An idb.IDBTransaction
.
var myTransaction = request.transaction;
See also: https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction
Property. An `idb.IDBTransaction`. `var myTransaction = request.transaction;` See also: `https://developer.mozilla.org/en-US/docs/Web/API/IDBRequest/transaction`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close