A repository of over 1000 quality jQuery plugins

jQuery jQuery Table2excel

jQuery Table2excel is a jQuery Tables & Graphs plugin.

Created by Rainabba

jQuery Plugin to export HTML tabled to Excel Spreadsheet Compatible Files

Not what you're looking for? Click here to view more Tables & Graphs jQuery plugins

jQuery table2excel Plugin by Rainabba (https://github.com/rainabba/jquery-table2excel)

Credit for the core table export code concept goes to insin (met on Freenode in #javascript) and core code inspired from https://gist.github.com/insin/1031969

DISCLAIMER

This plugin is a hack on a hack. The .xls extension is the only way [some versions] of excel will even open it, and you will get a warning about the contents which can be ignored. The plugin was developed against Chrome and other have contributed code that should allow it to work in Firefox and Safari, but inconsistently since it's a hack that's not well supported anywhere but Chrome. I would not use this in public production personally and it was developed for an Intranet application where users are on Chrome and had known versions of Excel installed and the users were educated about the warning. These users also save-as in Excel so that when the files are distributed, the end-users don't get the warning message.

Usage

  1. Include jQuery:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
  2. Include table2excel plugin's code:

    <script src="dist/jquery.table2excel.min.js"></script>
  3. Call the plugin:

    $("#yourHtmTable").table2excel({
        exclude: ".excludeThisClass",
        name: "Worksheet Name",
        filename: "SomeFile" //do not include extension
    });

demo/

Contains a simple HTML file to demonstrate your plugin.

dist/

This is where the generated files are stored once Grunt runs.

.editorconfig

This file is for unifying the coding style for different editors and IDEs.

Check editorconfig.org if you haven't heard about this project yet.

.jshintrc

List of rules used by JSHint to detect errors and potential problems in JavaScript.

Check jshint.com if you haven't heard about this project yet.

.travis.yml

Definitions for continous integration using Travis.

Check travis-ci.org if you haven't heard about this project yet.

table2excel.jquery.json

Package manifest file used to publish plugins in jQuery Plugin Registry.

Check this Package Manifest Guide for more details.

Gruntfile.js

Contains all automated tasks using Grunt.

Check gruntjs.com if you haven't heard about this project yet.

package.json

Specify all dependencies loaded via Node.JS.

Check NPM for more details.

Contributing

Check CONTRIBUTING.md

History

Check Release list.

License

MIT License



You might also like these other Tables & Graphs jQuery Plugins

  • jexcel

    jExcel is is a very light jquery plugin to embed a spreadsheet, compatible with Excel, in your browser. You can […]

  • jquery-graphql

    A GraphQL Client for jQuery – Based on http://rmosolgo.github.io/blog/2016/03/03/using-graphql-without-relay/

  • jquery-linechart

    JQuery plugin for creating charts