Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8613809
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:58:17+00:00 2026-06-12T04:58:17+00:00

I am using JQuery IndexedDB Plugin available here http://nparashuram.com/jquery-indexeddb/ . Following is the code

  • 0

I am using JQuery IndexedDB Plugin available here http://nparashuram.com/jquery-indexeddb/ . Following is the code that I iterate over the objectstore project_created. When I run this code ss is alerted before objectstore task_created is iterated. But logically, ss should be alerted only after objectstore task_created is iterated.

$.indexedDB("sl_task_tracker").objectStore("project_created").each(function(elem){
        var count_tasks=0;
        $.indexedDB("sl_task_tracker").objectStore("task_created").each(function(item){
            if(item.value.project_id==elem.key)
                count_tasks++;
        });

        alert("ss");
});
});
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:58:18+00:00Added an answer on June 12, 2026 at 4:58 am

    I believe this is because IndexedDB uses an aynchronous API. Everything related to IndexedDB is done in “another thread” in order to not block the main thread (so that the web site won’t appear to be fixed).

    I don’t know about this plugin, but you should check if you can pass a “onSuccess” function to your task, this way you can specify what’s gonna happen once the task has been completed.

    For more information about the plugin you’re using, you can always ask the dev on his github page : https://github.com/axemclion/jquery-indexeddb

    (Sorry about my bad technical english, feel free to edit in a much more understandable language)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery timepickr: http://archive.plugins.jquery.com/project/jquery-timepickr Having included these files: jquery-1.7.1.min.js jquery-ui-1.8.21.custom.min.js ui.timepickr.js And getting this
using jquery's .post i send do my php code an object that with var_dump
Using jQuery and given this <ul> <li> <a external=http://stackoverflow.com href=home.htm>Link 1</a> </li> <li> <a
Using jquery validation: http://docs.jquery.com/Plugins/Validation I am also validating each field on blur: //validate each
Using jQuery, I'm attempting to iterate over an array and compare to a value,
Using jQuery, how can I get the input element that has the caret's (cursor's)
Using jQuery Autocomplete, according to the docs you have to do the following to
Using jQuery 1.5.1 Tried this block of code in: head section as well as
Using jQuery, is there a way to disable the click sound in IE that
Using jQuery, what's the best way to automatically initialize a plugin on all current

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.