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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:05:22+00:00 2026-06-13T20:05:22+00:00

I am opening files without HTTP protocol in Firefox versions 14-16. I am unable

  • 0

I am opening files without HTTP protocol in Firefox versions 14-16.

I am unable open the indexdb. My syntax is this:

window.indexedDB = window.indexedDB || window.webkitIndexedDB || window.mozIndexedDB || window.msIndexedDB;
var IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction;
var request = window.indexedDB.open(dbname, dbversion);
request.onsuccess = function (evt) {
    alert('Success')
};

With Firebug I am able to see window.mozIndexedDB is null.

In localhost it is working fine, But I need to run without HTTP.

Are any changes are needed to my code?

  • 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-13T20:05:24+00:00Added an answer on June 13, 2026 at 8:05 pm

    A lot of stuff is disabled on the file protocol for “security” seasons. I tried to find the reason on the Mozilla site, but they do not mention it on MDN anywhere about the restriction. BUT if you go to the dark side, Microsoft mentions the restriction.

    From Microsoft’s site:

    Note The following code examples require a browser that supports File
    API and Indexed Database API, such as Internet Explorer 10 or later.
    Additionally, each example has an associated “Live link”, which links
    to a working code sample (using the http protocol). For security
    reasons, Indexed Database API only works through the http, https,
    ms-wwa, or ms-wwa-web protocols in Windows Internet Explorer. That is,
    Internet Explorer doesn’t allow a local HTML page ( file://) to fully
    execute the Indexed Database API.
    Instead, the page must be behind a
    supported protocol such as http:// or https://. If convenient, a local
    web server can be used to preview IndexedDB pages using the loopback
    address (127.0.0.1).

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

Sidebar

Related Questions

This page acts as a good example for my problem : http://valums.com/files/2009/ajax-upload/demo-jquery.htm If you
My app is capable of opening files from the Dropbox. Currently, the following scenario
I have been having trouble with opening files with ifstream if I do: ifstream
I'm opening lots of files with fopen() in VC++ but after a while it
We're having a problem getting Word documents to download in IE7/IE8 using window.open calls.
Is it possible to run compiled C and C++ Files on a mac without
I need to open one file, parse it, make http requests and save the
I have the following files: C:\item1\item11\item1.xls C:\item1\item12\item11.xls If I follow this code: ZipForge zip
Did I get the syntax correct? tf get .\Web\project.root /recursive All files are up
I'm opening PDF files with search highlighting in embedded Acrobat by using the search

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.