Instacalc

By michal frackowiakmichal frackowiak

Description

Using the instacalc (http://instacalc.com/) one can embed a nice calculator into a page. Just go to http://instacalc.com, see how things work, create your calculator template (insert some values) or not if you want it plain and click on Embed. Copy the code and paste within the [[embed]] ... [[/embed]] tags like below

Code

The example below is a demo caculation from the instacalc website here.

[[embed]]
<script>
instacalc_embed_url = 'http://instacalc.com/?d=RW50ZXIgeW91ciBzaXRlJ3MgdHJhZmZpYyAmIFtlQ1BNXShodHRwOi8vZW4ud2lraXBlZGlhLm9yZy93aWtpL0VmZmVjdGl2ZV9Db3N0X1Blcl9NaWxsZSkgdG8gZ2V0IGEgcmV2ZW51ZSBlc3RpbWF0ZS4&c=ZGFpbHlfaGl0cyA9IDMwMDAwfGVDUE0gPSAyLjIwfGRhaWx5X3JldmVudWUgPSBkYWlseV9oaXRzICogZUNQTSAvIDEwMDB8bW9udGhseV9yZXZlbnVlID0gZGFpbHlfcmV2ZW51ZSAqIDMwfHllYXJseV9yZXZlbnVlID0gZGFpbHlfcmV2ZW51ZSAqIDM2NQ&s=sshhh&v=0.6';
instacalc_embed_height = 300;
</script>
<script src="http://instacalc.com/javascripts/embed.js"></script>
[[/embed]]

In action

Rate this solution

If you think this solution is useful — rate it up! Or dump it otherwise.

rating: +11+x
wow
rickdogrickdog 1167511654|%e %b %Y, %H:%M %Z|agohover

uber cool, very useful

unfold wow by rickdogrickdog, 1167511654|%e %b %Y, %H:%M %Z|agohover
error message
Jens BoelteJens Boelte 1222710960|%e %b %Y, %H:%M %Z|agohover

Hi, the code above works. But when I try my own calculator or other examples from the instacal website I receive the error message

Sorry, no match for the embedded content as you should see below :-( Any idea why?

[[embed]]
<script>
instacalc_embed_url =
'http://instacalc.com/embed/?d=QmVyZWNobnVuZyBTZWh3aW5rZWwuIEJpdHRlIFN0aW11bHVzZ3LDtsOfZSB1bmQgQWJzdGFuZCBpbSBzZWxiZW4gTWHDn3N0YWIgZWluZ2ViZW4h&c=U3RpbXVsdXNncsO2w59lID0gMTB8QWJzdGFuZCA9IDEwMHxTZWh3aW5rZWwgPSAoUjEvUjIpICooMzYwLygyKiBQSSkp&s=ssh&v=0.9';
instacalc_embed_height = 300; instacalc_embed_width = 425; </script>
<script src="http://instacalc.com/javascripts/embed.js"></script>
[[/embed]]
Sorry, no match for the embedded content.
unfold error message by Jens BoelteJens Boelte, 1222710960|%e %b %Y, %H:%M %Z|agohover
Re: error message
tsangktsangk 1227519658|%e %b %Y, %H:%M %Z|agohover


First Wikidot Wiki with a Chinese Domain! -> http://曾勁驊.info.tm/ or http://kenneth.wikidot.com

Out of your site limit? I've got 996 sites left. Ask me and I'll create one for you! Just PM me and let me know.^

^If you require an Iron Giant Template cloned site, please tell me that too!

unfold Re: error message by tsangktsangk, 1227519658|%e %b %Y, %H:%M %Z|agohover
Re: error message
Mr RoogleMr Roogle 1256184768|%e %b %Y, %H:%M %Z|agohover

I think that i'm having the same issue at the moment, i've only just started trying to get it set up, i'll let you know about any further developments…
cheers,
Ruben FitzSimons

unfold Re: error message by Mr RoogleMr Roogle, 1256184768|%e %b %Y, %H:%M %Z|agohover
Amazing
Mr RoogleMr Roogle 1256184559|%e %b %Y, %H:%M %Z|agohover

This looks like a great bit of programming, i'm having a little bit of trouble setting it up, but enjoying it all the same - very fun to play with!!
Cheers,
Ruben FitzSimons

unfold Amazing by Mr RoogleMr Roogle, 1256184559|%e %b %Y, %H:%M %Z|agohover
Re: Amazing
Jens BoelteJens Boelte 1256219480|%e %b %Y, %H:%M %Z|agohover

Hi, I have solved the problem in the meantime. See the code below. I did not use the JavaScript Version but the inframe option.

[[iframe http://instacalc.com/embed/?d=U2lnbmFsLVJhdXNjaHZlcmjDpGx0bmlzIGJlcmVjaG5lbi4gRWluZmFjaCBTaWduYWwsIFJhdXNjaGVuIHVuZCBBbnphaGwgZGVyIER1cmNoZ8OkbmdlIGVpbmdlYmVu&c=U2lnbmFsID0gMnxSYXVzY2hlbiA9IDIwfER1cmNoZ8OkbmdlID0gMTB8U2lnbmFscmF1c2NodmVyaMOkbHRuaXMgPSBSMS8oMS9zcXJ0KFIzKSpSMik&s=sssh&v=0.9
frameborder="0" ]]
unfold Re: Amazing by Jens BoelteJens Boelte, 1256219480|%e %b %Y, %H:%M %Z|agohover
Add a new comment
Page tags: calculator embed gadget
page_revision: 1, last_edited: 1217320292|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License