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 8847119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:08:04+00:00 2026-06-14T12:08:04+00:00

Regarding to What is the best way to create various IndexedDB objectStores within the

  • 0

Regarding to What is the best way to create various IndexedDB objectStores within the same script? I created two objectstores :

var opinionObjectStore = thisDb.createObjectStore("opinion", {keyPath: "id", autoIncrement: false});
var commentObjectStore = thisDb.createObjectStore("comment", {keyPath: "id", autoIncrement: false});

Then I open a transaction and get the both objectstore:

var transo = myDataBase.transaction(["opinion", "comment"], "readwrite");
var opinionsObjectStore = transo.objectStore("opinion");
var commentsObjectStore = transo.objectStore("comment");

Then I create my “need to be stored” objects:

var comment = {id: "myid"};
var resp = commentsObjectStore.add(comment);
// other instructions [...]
var opinion = {};
opinion.id = tagElement.id;
var resp = opinionsObjectStore.add(opinion);

And I get an exception:

DataError: Data provided to an operation does not meet requirements.
[Break On This Error]
var resp = commentsObjectStore.add(comment);

Could you help me to let me add my comment and don’t throw an exception?

I already read DOM IDBDatabase Exception 5 when adding data in indexedDB and Error "Data provided to an operation does not meet requirements" when trying to add data to indexedDB which do not help.

  • 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-14T12:08:05+00:00Added an answer on June 14, 2026 at 12:08 pm

    The problem is found:

    tagElement.id;
    

    If tagElement is a xml node from :

    liveXml.find('Comment').each(function(){
        var tagElement = $(this);
    

    Then tagElement.id is undefined, but tagElement.attr('id') is defined. jQuery matters!

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

Sidebar

Related Questions

Please clarify my queries regarding Singleton and Multithreading: What is the best way to
My question is more regarding the best way/practice how to realise one thing. Lets
What is the best way (regarding database design) for storing images for different purposes?
After reading What is the best way to implement nested dictionaries? why is it
I've been reading up on the best way to handle images for a website
I have a question regarding best-practice when including headers. Obviously include guards protect us
Got a question regarding best practices for doing parallel web service calls, in a
Yesterday, I asked this question regarding best practices for a simple information retrieval system
I have a question regarding the best practise of handling formated text when using
I formerly asked for a Best-Practice regarding this, But this is one the strategies

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.