jquery init with dynamic load of data


Trying to start a gantt up with this code.

	$(".gantt").dhx_gantt().load("print_gantt_project_data.php?project_id=" + projectID);
    data: tasks,

I have verified the data from print_gantt_project_data is json and correct (related to /common/testdata.js from examples)

And no data is shown.

Any one has an example ?

Check next two things

a) gantt_div container has some non-zero sizes assigned ( try to set fixed width and height values for the container )

b) double-check the date format in your test data, if dates are in wrong format, scheduler will not be able to parse them, and will not show any tasks as result.