Need to import tables from Excel or other sources?
FCC.TableImport allows the import of text representation of tabular data - be it comma separated values or tab separated copy-paste from Microsoft Excel.
Instructions
To use the FCC.TableImport you need:
- a valid XHTML document,
- a form with a textarea in this document
- the following javascripts: json.js* and fcc.tableimport.js
When you're set up you need to call FCC.TableImport.convert(text) to convert the text to a JSON representation.
The script sports two other conversion functions - to an HTML table and to a fieldset of hidden input elements that can be used to submit data to a server. More about these in the demo.
* json.js is taken from http://www.json.org/js.html. Author is presumably Douglas Crockford.
Demo
Check the demo to see how the conversion can easily be implemented.
Documentation
Author
Author of this script is Marko Mrdjenovic.
Development
To report bugs or track development check the blog.
Support
Disclaimer
The script is available as-is and has no guarantees.
License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.