Categories | Question details Back To List | ||
Grid Problem Hello, I have a problem, when i run my application by Jboss. All files are there and OK, but browser show a error message (Erro: mygrid.setMathRound is not a function). Do you kwon something about this? ERROR (FireFox): Erro: mygrid.setMathRound is not a function Source: http://localhost:8080/appTest/sheetBaseAction.do?action=init Line: 652 My JSP: ... <script src="<%=request.getContextPath()%>/scripts/comp/dhtmlxcommon.js"></script> <script src="<%=request.getContextPath()%>/scripts/comp/dhtmlxgrid.js"></script> <script src="<%=request.getContextPath()%>/scripts/comp/dhtmlxgridcell.js"></script> <script src="<%=request.getContextPath()%>/scripts/comp/ext/dhtmlxgrid_math.js"></script> <script src="<%=request.getContextPath()%>/scripts/comp/ext/dhtmlxgrid_srnd.js"></script> ... <script> function doInitGrid(){ var mygrid = new dhtmlXGridObject('mygrid_container'); mygrid.setImagePath('/scripts/componentes/imgs/'); mygrid.setSkin("gray"); mygrid.setMathRound(4); mygrid.enableLightMouseNavigation(true); mygrid.enableAlterCss("even","uneven"); mygrid.enableAutoHeigth(true,"1300"); mygrid.enableSmartRendering(true,20); mygrid.loadXML("/awbtrading/calculoBaseAction.do?acao=montarCalculoBase"); } </script> Answer posted by Support on Sep 12, 2008 03:51 Such problem can occur only if dhtmlxgrid_math.js not included in HTML file. Please be sure that such file is really loaded ( it exists in specified location and case of name is the same on file system and in JSP file ) |