JavaScript
{dialog.object}idbGetKeys Method
Syntax
{dialog.object}.idbGetKeys([onSuccess [, onError]])
Arguments
- onSuccessfunction
A JavaScript function to call when the operation succeeds. The onSuccess function is passed a parameter, data, which is the list of keys from IndexedDb.
- onErrorfunction
A JavaScript function to call when the operation fails.
Description
Gets list of keys from IndexedDB.
Discussion
The idbGetKeys() method retrieves a list of keys (item names) from IndexedDB.
Example
if ({dialog.object}.idbAvailable()) { var ok = function(data) { console.log(data); }; var error = function() { alert('could not get the keys')}; {dialog.Object}.idbGetKeys(ok, error); }
See Also