diff --git a/source/js/timeline.js b/source/js/timeline.js index f2ce7d3..e84d498 100755 --- a/source/js/timeline.js +++ b/source/js/timeline.js @@ -1959,9 +1959,20 @@ if(typeof VMM != 'undefined' && typeof VMM.Timeline == 'undefined') { //https://spreadsheets.google.com/feeds/list/0Agl_Dv6iEbDadGRwZjJSRTR4RHJpanE2U3lkb0lyYUE/od6/public/values?alt=json // https://docs.google.com/a/digitalartwork.net/spreadsheet/ccc?hl=en_US&key=0Agl_Dv6iEbDadGRwZjJSRTR4RHJpanE2U3lkb0lyYUE&rm=full#gid=0 var _key = VMM.Util.getUrlVars(raw_data)["key"]; - var _url = "https://spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json"; - - VMM.getJSON(_url, VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData); + var _url = "//spreadsheets.google.com/feeds/list/" + _key + "/od6/public/values?alt=json"; + + if ( $.browser.msie && parseInt($.browser.version, 10) >= 8 && window.XDomainRequest) { + // Use Microsoft XDR + var xdr = new XDomainRequest(); + xdr.open("get", _url); + xdr.onload = function() { + var json = $.parseJSON( xdr.responseText ); + VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData( json ); + } + xdr.send(); + } else { + VMM.getJSON(_url, VMM.Timeline.DataObj.model_GoogleSpreadsheet.buildData); + } },