A collaborative spreadsheet in less than 45 lines of JS, one library used
1–10 of 69 posts
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#2Sweet. How do you do I make it so not every Joe can hack the sheet?
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#3Sweet. How do you do I make it so not every Joe can hack the sheet?
[deleted]
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#4Dope.
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#5Oh boy. I can't wait to see what someone else can do with 60 lines of JS, and two libraries used!!
[Note: not being sarcastic. Think this is a genuinely awesome way to respond to first post!]
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#6Careful, this code runs eval() on all spreadsheet fields. Someone can "collaboratively" steal your jsfiddle.net cookies.
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#7Sweet. How do you do I make it so not every Joe can hack the sheet?
You'd have to parse the cells as some sort of DSL that only allows mathematical tokens, as opposed to eval which allows access to the full arsenal of the JS language. But I think excel is Turing complete
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#8very cool, probably need a few 100 more lines of code to stop XSS but awesome none the less.
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#9It would be nice if people could lay off the script injections. It's clearly insecure, but that's not really the point. It makes the experience worse for everyone if you alert(), etc.
Re: A collaborative spreadsheet in less than 45 lines of JS, one library used
#10I like the craziness that this devolved into. It's funny when a bunch of people are all editing like mad.
I had the thought that it'd be fun to have a contest using jsfiddle to start from some point, like the excel (lite) clone in 30 lines, and add the best/coolest feature in some limit of lines.
It's really wonderful how ingenuity stacks.