samples/02_extensions/07_managing_grid_columns.html

samples/02_extensions/07_managing_grid_columns.html page error

version : dhtmlxGantt 3.1.1

:cry: :cry: :cry: :cry:




Hello,
the online example seems to work correctly
docs.dhtmlx.com/gantt/samples/02 … lumns.html

Do you use a different version of a dhtmlxMenu? Please provide a complete example

example file… :cry: :cry: !
samples.zip (575 KB)

local file open → correctly

server upload file open → error message…


Hi,
i’ve tried the attached examples folder with a codebase of commercial edition of gantt 3.1.1 - all seemed correctly.
Are there any other steps needed in order to reproduce the problem?

Hi,
Fixed.

samples/common/dhtmlxMenu/dhtmlxcommon.js

Parse error: syntax error, unexpected ‘.’ in /home/anymate/gwdevcokr/pms/gantt/samples/common/dhtmlxMenu/dhtmlxcommon.js on line 355

355 line
if (tag.test(k.replace(/^<?xml[^?]?>\s/, “”))) { // remove leading <?xml ...?> if any, \n can be also presenе
->
if (tag.test(k.replace(/^<?xml[^?]?>\s/, “”))) { // remove leading if any, \n can be also presenе

It seem your server pre-process js file which is not expected.

Anyway we have removed the dangerous comment from the main codebase as well.
Thanks for pointing to the problem.