The easiest way to import an Excel calculator, live chart or smart form into a Squarespace blog or website is to use SpreadsheetConverter Flash (Standard or Professional Edition). This tutorial will show you how to publish live Excel spreadsheets and charts in Squarespace as interactive Flash files.
Adding a live calculator or chart to your website adds value to your visitors and makes your website more interactive. SpreadsheetConverter converts Excel spreadsheets, charts and tables to web-ready Flash files, that can easily be imported into your Squarespace blog or website.
We originally developed the Flash flavor to make it less complicated to use live calculators and smart forms with WordPress or other blogging tools and content management systems. With the new Dropbox sharing, it’s much easier to show the calculator in an iframe. In this scenario, we recommend that you use the iPhone/Android or HTML flavors instead.
Most Squarespace blogs consist of just text and static images. A simple way to make your blog or website more interesting is to add a live chart, calculator or web form to it. Help your visitors solve their problems or visualize their situation!
To create this tutorial, we took a simple calculator for UK sales tax (value-added tax, VAT) and published it in a Squarespace website. To be able to embed the Excel spreadsheet in a web page, we first converted it to Flash using SpreadsheetConverter Flash.
With this clever Excel plugin you can also create advanced tables, import complex charts or open live graphs in Squarespace.
Converting the spreadsheet to a Flash file was simple with SpreadsheetConverter Flash. We just opened the calculator in Excel and pressed the Convert button in the SpreadsheetConverter ribbon.
After the conversion, the Flash file and two skeleton HTML files were placed in the designated folder.
To upload the calculator to the Squarespace site we logged in to Squarespace and selected “Create New Post”. We selected “Raw HTML” view to be able to perform some “behind-the-scenes” tricks.
Since Squarespace doesn’t handle Flash files natively, we had to upload our Flash calculator as an image. We clicked on the “Insert Image” button, then used “Browse” to select the .swf Flash file that SpreadsheetConverter created. We then pressed the “Upload File” button.
Squarespace offered to resize the image during upload but we ignored that option and just pressed “Save & Close”.
The file was uploaded, and Squarespace inserted a plain image link to the file into the post.
We needed to be able to refer to the Flash file later, so we copied the address to the Flash file.
A static image link wouldn’t do. We wanted the Flash file to open as a live object on the web page.
First we deleted the entire image link since we didn’t need it anymore. Then we pasted a few lines of HTML code into the HTML view of the post in Squarespace. You can find this code below; it’s standard code for displaying a Flash object in a web page.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="500px" height="400px" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="<.swf file address>" /> <param name="quality" value="high" /> <param name="bgcolor" value="#869ca7" /> <param name="allowScriptAccess" value="sameDomain" /> <embed src="<.swf file address>" quality="high" bgcolor="#869ca7" width="500px" height="400px" align="middle" play="true" loop="false" quality="high" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed> </object>
If you follow this tutorial, you must replace all the underlined text above with your own parameters. You must provide three values: the address of the Flash file that you uploaded (in two places above) and the width and height of the Flash object (in two places above) to avoid scrolling.
Here’s what the post looked like when we were done:
We opened the web page in a browser and tested the calculator – it worked great. For every new value we entered into the Price field, it automatically calculated new amounts for VAT and Price, just like Excel.
SpreadsheetConverter can publish almost any Excel calculator, chart, spreadsheet or electronic form on the web. For more examples, visit our Examples library.