Categories | Question details Back To List | ||
_js_prefix is not defined in dhtmlxgrid_excell_calendar.js My loading sequence is: <script language="javascript" src="/script/codebase/dhtmlxcommon.js"></script> <script language="javascript" src="/script/codebase/dhtmlxgrid.js"></script> <script language="javascript" src="/script/codebase/ext/dhtmlxgrid_srnd.js"></script> <script language="javascript" src="/script/codebase/dhtmlxgridcell.js"></script> <script language="javascript" src="/script/codebase/excells/dhtmlxgrid_excell_calck.js"></script> <script language="javascript" src="/script/codebase/excells/dhtmlxgrid_excell_acheck.js"></script> <script language="javascript" src="/script/codebase/excells/dhtmlxgrid_excell_calendar.js"></script> <script language="javascript" src="/script/codebase/excells/dhtmlxgrid_excell_clist.js"></script> And I get error like this, just after load page: Error: _js_prefix is not defined Source file: http://localhost/script/codebase/excells/dhtmlxgrid_excell_calendar.js Row: 8 Answer posted by Support on Nov 28, 2007 02:27 Just add next line to init code <script>_css_prefix="../../codebase/"; _js_prefix="../../codebase/"; </script> <script language="javascript" src="/script/codebase/dhtmlxcommon.js"></script> ... all other code ... the _css_prefix and _js_prefix need to be set in case of calendar usage, they point to catalogs where js and css files of used calendar can be found. Answer posted by krzak on Nov 28, 2007 15:11 Thanks, I'm suprised about you pretty fast support answers. It's really fast and it's working. Good work guys. |