Can we make scripts of functions to share in a library?

36 views
Skip to first unread message

rip

unread,
Mar 10, 2012, 2:41:30 PM3/10/12
to last...@googlegroups.com
I'll admit I haven't spent much time with this web app but it is really very compelling.

I am in the middle of putting together some web pages that do a whole lot of different financial calculations. These would be canned functions using JS and AJAX, but having a calculator tape would make it a killer app (in my little world.)

Is there a way to add functions to JS libraries that can be invoked by LastCalc?

Kudos for putting this out there. You and others like you (FOSS) are my heroes.

Ian (LastCalc author)

unread,
Mar 10, 2012, 3:08:31 PM3/10/12
to last...@googlegroups.com
What you describe is basically where we want to take this, hopefully sooner rather than later.

There is a trick you can use today though that may help.  You'll notice when you visit www.lastcalc.com that you are immediately redirected to a URL like www.lastcalc.com/abc123.  This is your "worksheet", and anything you do on this page will still be there if you bookmark this URL and come back to it later.

You can also share this URL with other people, but then they'll be able to modify your worksheet and screw it up.  There's a way around this though...

If you do a "View source" you'll see near the top something like:

<body ... data-worksheet-ro-id="bdujMMZm" ...>

You can take the bdujMMZm and append it to a LastCalc URL like http://lastcalc.com/bdujMMZm.  Now you can share this new URL with other people, and when they visit they'll get a copy of your original worksheet that they can modify, but without affecting the original.

Obviously this is messy, but we're working on a proper way to do this.  Hopefully going open source will help!

Ian.
Reply all
Reply to author
Forward
0 new messages