splitAt

Following code creates spltAt(4) very well in IE and it does not work in Firefox. It hangs at the line mygrid1.splitAt(4)





    var mygrid1 = new dhtmlXGridObject(‘gridBox1’);

    mygrid1.setImagePath("/map-visual/js/dhtmlGrid/codebase/imgs/");

    mygrid1.setHeader(    “ROW,    ACCOUNTID ,    CC,        ACC NAME,    COVERAGE ,    INDUSTRY,    REVN,    ESTI,    CAGR,    TOP QUAD ,    SEG CODE”);

    mygrid1.setInitWidths("    50,    150,    50,        250,    250,        150,    100,    100,    50,    150,    100");

    mygrid1.setColAlign(“right,left,left,left,left,left,right,right,right,left,left”)

    mygrid1.setColTypes (“ro,ro,ro,ro,ro,ro,price,price,ro,ro,ro”);

    mygrid1.setColSorting(“int,str,str,str,str,str,int,int,int,str,str”);

mygrid1.enableMultiline(“true”);

    mygrid1.enableBlockSelection();

    mygrid1.attachEvent(“onKeyPress”,onKeyPressed1);

    mygrid1.attachEvent(“onFilterEnd”,doFilterAgain1);

    mygrid1.init();

mygrid1.splitAt(4);

    mygrid1.setSkin(“light”);



Is there any special consideration for Firefox?

You need to remove whitespaces rom setInitWidths command

Instead of
     mygrid1.setInitWidths("    50,    150,    50,        250,    250,        150,    100,    100,    50,    150,    100");

use
     mygrid1.setInitWidths(“50,150,50,250,250,150,100,100,50,150,100”);

I changed the setWidth command as suggested. Still it does not work in Firefox.
mygrid1.setInitWidths(“50,150,50,250,250,150,100,100,50,150,100”);


All other are correct.
The sample with the same code works correctly in both IE and FF in case of local samples
( sample was sent by email )