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

  • Home
  • SEARCH
  • 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 7036769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:27:49+00:00 2026-05-28T01:27:49+00:00

Possible Duplicate: window.requestFileSystem not working Following is the code to generate a csv file

  • 0

Possible Duplicate:
window.requestFileSystem not working

Following is the code to generate a csv file using any data from HTML page. In my case, I hvae a variable history in which I have data collected from a HTML table.

By this code, I can download the generated csv file in my computer. this code is working fine in Google Chrome but not in Firefox. I need to run it in firefox too.

This code is from HTML5

You can try this code here

window.webkitRequestFileSystem(window.TEMPORARY, 1024*1024, function(fs) {
        fs.root.getFile('history_tracker.csv', {create: true}, function(fileEntry) {
          fileEntry.createWriter(function(fileWriter) {
            var builder = new WebKitBlobBuilder();

            builder.append(history);

            var blob = builder.getBlob('text/plain');

            fileWriter.onwriteend = function() {
              window.open(fileEntry.toURL());
            };
            fileWriter.write(blob);
          }, errorHandler);
        }, errorHandler);
      }, errorHandler);
    }

    function errorHandler(e) {
      var msg = '';

      switch (e.code) {
        case FileError.QUOTA_EXCEEDED_ERR:
          msg = 'QUOTA_EXCEEDED_ERR';
          break;
            case FileError.NOT_FOUND_ERR:
          msg = 'NOT_FOUND_ERR';
          break;
            case FileError.SECURITY_ERR:
          msg = 'SECURITY_ERR';
          break;
            case FileError.INVALID_MODIFICATION_ERR:
          msg = 'INVALID_MODIFICATION_ERR';
          break;
            case FileError.INVALID_STATE_ERR:
          msg = 'INVALID_STATE_ERR';
          break;
            default:
          msg = 'Unknown Error';
          break;
                };
      }
  • 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-05-28T01:27:50+00:00Added an answer on May 28, 2026 at 1:27 am

    Chrome is currently the only browser to implemented the HTML5 Filesystem API. See the supported browsers note in the html5rocks article.

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

Sidebar

Related Questions

Possible Duplicate: How to prevent IFRAME from redirecting top-level window <iframe width=980px frameborder=0 marginheight=0
Possible Duplicate: Is there a way to detect if a browser window is not
Possible Duplicate: Javascript: Setting window.location.href versus window.location When I tested these code in browser
Possible Duplicate: Setting popup window to be a child of MDI Control when using
Possible Duplicate: How to disable “Security Alert” window in Webbrowser control I'm currently using
Possible Duplicate: Equal strings aren't equal (==) in Java? From Eclipse's Display window: messages.get(i).getMsg()
Possible Duplicate: Cache v.s Session I am using some code that uses HttpRuntime.Cache to
Possible Duplicate: JavaScript open in a new window, not tab How can I open
Possible Duplicate: Emacs, switch to previous window other-window advances me to the next window
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should

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.