DhtmlxGantt + Dataprocessor.SendData

Hello, I’m using the dhtmlxGantt V3.2.1 and dataprocessor 3.6
When I send the data to the server using “dataProcessor.sendData();”,i got an error.
Error : “window.dhtmlx.url is not a function”

Detail:
dhtmlxgantt.js–>
dp.attachEvent(“onBeforeDataSending”, function() {
var url = this._serverProcessor;
if(this._tMode == “REST”){
var mode = this._ganttMode.substr(0, this._ganttMode.length - 1);// links, tasks → /link/id, /task/id
url = url.substring(0, url.indexOf(“?”) > -1 ? url.indexOf(“?”) : url.length);
//editing=true&
this.serverProcessor = url + (url.slice(-1) == “/” ? “” : “/”) + mode;
}else{
→ “Here is the error” -->this.serverProcessor = url + window.dhtmlx.url(url) + “gantt_mode=” + this._ganttMode;
}
return true;
});

This is a reported error? have you the solution to this?
Thanks in advance.

Please post the full list of dhtmlx files which you are using on the page.

It seems there is a conflict between the older dhtmlx file and latest dhtmlxGantt.
As for above issue, it can be patched by adding the next code on the page ( after dhtmlxgantt.js )

dhtmlx.url = function(str){ if (str.indexOf("?") != -1) return "&"; else return "?"; }

Hello.
The patch work ok, but maybe is better to fix the order of the js and remove it this patch.
This is how i put it.

The screen has one combo, toolbar and behind the gantt.
How must be the correct order?

You can try to place dhtmlxgantt.js first ( before dhtlmxcommon.js ) and other js files after it.

If it doesn’t help, please contact us through support system

Hi, this don’t solve the problem, thanks but for the moment i will keep with the “patch” until we buy the PRO edition.