Embed Excel Document Through SkyDrive

Embed Excel Document Through SkyDrive

Hi, 

I am trying to embed the following script but it is coming up with an error - that's not of the right format. Please verify code. 

Could you please help. 

<div id="myExcelDiv" style="width: 200px; height: 110px"></div>
<script type="text/javascript" src="http://r.office.microsoft.com/r/rlidExcelWLJS?v=1&kip=1"></script>
<script type="text/javascript">
/*
* This code uses the Microsoft Office Excel Javascript object model to programmatically insert the
* Excel Web App into a div with id=myExcelDiv. The full API is documented at
* http://msdn.microsoft.com/en-US/library/hh315812.aspx. There you can find out how to programmatically get
* values from your Excel file and how to use the rest of the object model. 
*/

// Use this file token to reference Workbook1.xlsx in Excel's APIs
var fileToken = "SD1EEB6B59CAA622F0!107/2227992474060989168/t=0&s=0&v=!ALOEs7i3cwwEXo8";

// run the Excel load handler on page load
if (window.attachEvent) {
window.attachEvent("onload", loadEwaOnPageLoad);
} else {
window.addEventListener("DOMContentLoaded", loadEwaOnPageLoad, false);
}

function loadEwaOnPageLoad() {
var props = {
item: "'Sheet2'!A1:B4",
uiOptions: {
showDownloadButton: false,
showGridlines: false,
showParametersTaskPane: false
},
interactivityOptions: {
allowTypingAndFormulaEntry: false,
allowParameterModification: false,
allowSorting: false,
allowFiltering: false,
allowPivotTableInteractivity: false
}
};

Ewa.EwaControl.loadEwaAsync(fileToken, "myExcelDiv", props, onEwaLoaded);
}

function onEwaLoaded(result) {
/*
* Add code here to interact with the embedded Excel web app.
*/
}
</script>