Got some strange console errors in firefox when loading spreadjs

215 Views Asked by At

enter image description hereGot some undefined errors like a is undefined , r.spread is defined from the spreadjs-all.min.js. What are the scenarios for these errors occurs. I have loaded my spreadsheet in an iframe. Is this cause any error ? Only getting this error is firefox.I am using spreadjs version 13.0.1.

My code is below

              inframeelm.attr("src", "/engine/packages/components/SpreadJs/index/index.html");
              var contentWindow = inframeelm[0].contentWindow;
              $(contentWindow).ready(function(){
                SpreadSheetGC = contentWindow.GC;
                if(SpreadSheetGC){
                    var designer = SpreadSheetGC.Spread.sheets.Designer;
                    <-----------------------------------------------
                    ------------------------------------------------
                    ------------------------------------------------
                    ------------------------------------------------>
                }

designer.loader.ready(function(){}); is not working in my code when I try to implement my functionality inside that.

1

There are 1 best solutions below

3
MESCIUS Team On

I am sorry I am unable to replicate the error you are seeing. It appears you are working with the SpreadJS Designer source code, please ensure that you follow the Read Me file that describes where to copy/paste SpreadJS's release files to properly use the Designer Source code.

If you have any additional issue feel free to reach out to the SpreadJS support team here and share a sample for us to look deeper into what is causing this issue: Submit a support ticket