Aside from losing input when tabbing out, works a treat in Opera. Can think of a couple of places that a fork of this might come in handy in my work this week. Clever, thanks for sharing
A spreadsheet in fewer than 30 lines of JavaScript, no library used
21–30 of 274 posts
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#22I think it says something about the browser as a platform - these thirty lines simply assume an enormous amount that excel and visicalc could not - visicalc had to write their own screen refresh routines.
It is useful sometimes to reflect on what has evolved so far - and wonder where we should be taking things. What is it now that is the equivalent of writing our own screen handling routines? Location? Distributed computation or storage?
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#23EDIT: I get it guys - I complained without reading carefully, sorry...
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#24How does jquery count as 'no library used'? EDIT: I get it guys - I complained without reading carefully, sorry...
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#25How does jquery count as 'no library used'? EDIT: I get it guys - I complained without reading carefully, sorry...
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#26A dangerously awesome feature: eval means it probably would support anon funcs.
=(function(){console.log("hehehe");})()Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#27Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#28My text disappears after I type it in and move on. And why do you call a table an "excel-like" app? Can it so =SUM(); can it do search and replace or the over 9000 other features of excel? No... it's a table, with a editor.
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#29My text disappears after I type it in and move on. And why do you call a table an "excel-like" app? Can it so =SUM(); can it do search and replace or the over 9000 other features of excel? No... it's a table, with a editor.
You could, of course, write a sum function, and reference it wherever you like.
Re: A spreadsheet in fewer than 30 lines of JavaScript, no library used
#30I've found SpreadJS[0], GelSheet[1], jQuery.Sheet[2], and ZK Spreadsheet, but none seem like thriving open-source projects as far as I can tell.
[0] http://wijmo.com/demo/spreadjs/samples/index.html
[1] http://www.gelsheet.org/demo