Your Search Results


    This article is in need of a technical review.

    « IDBRequest

    The IDBRequest.result property, returns the result of the request. If the the request failed and the result is not available, the InvalidStateError exception is thrown.


    readonly  attribute any  result;


    var title = "Walk dog";
    // Open up a transaction as usual
    var objectStore = db.transaction(['toDoList'], "readwrite").objectStore('toDoList');
    // Get the to-do list object that has this title as it's title
    var request = objectStore.get(title);
    request.onsuccess = function() {
      // Grab the data object returned as the result
      var data = request.result;
      // Update the notified value in the object to "yes"
      data.notified = "yes";
      // Create another request that inserts the item back into the database
      var requestUpdate = objectStore.put(data);
      // When this new request succeeds, run the displayData() function again to update the display
      requestUpdate.onsuccess = function() {


    An IDBObjectStore containing the result of the request.


    Specification Status Comment
    Indexed Database API Candidate Recommendation  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support

    12 -webkit


    4.0 (2.0)


    10 17 Not supported
    Feature Android Firefox Mobile (Gecko) Firefox OS IE Phone Opera Mobile Safari Mobile
    Basic support 4.4 6.0 (6.0) 1.0.1 10 17 Not supported

    Be careful in Chrome as it still implements the old specification along the new one. Similarly it still has the prefixed webkitIndexedDB property even if the unprefixed indexedDB is present.

    See also

    • Using IndexedDB
    • The reference application for the examples in this reference: To-do Notifications (view example live.) Not every snippet appears in this example, but every example uses the same data structure and syntax, and they will make sense in the context of this example.

    Document Tags and Contributors

    Contributors to this page: chrisdavidmills
    Last updated by: chrisdavidmills,