Working with dhtmlxscheduler the dataProcessor debug window opens automatically in every action (create, delete, double click in a cell, etc).
But, as far as I can see, there is no error, only information about the action.
�Can this debug mode be disabled?
Thanks
My code:
init = function() {
scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.show_loading=true;
scheduler.config.first_hour=8;
scheduler.config.last_hour=21;
scheduler.config.time_step=15;
scheduler.config.multi_day=true;
scheduler.init(‘scheduler_here’,null,“month”);
scheduler.setLoadMode(“month”);
scheduler.load(“davical/data.php”);
var dp = new dataProcessor(“davical/data.php”);
dp.init(scheduler);
}
You can switch to dhtmlxscheduler.js , which has not debug code, and will not show any unwanted debug info.
If by some reason you need to use debug version, you can hide console as
dp.init(scheduler);
dp._console.style.zIndex = -1; //be sure to remove this line after switching to dhtmlxscheduler.js
dp._console.style.zIndex = -1; did the trick in the onload event, but when other events where fired (new event, delete, ecc) the debug window appears again.
I use de debug version because I need a non compressed version of the code. The reason is the arquitecture of the site: there is a div that contains the menu bar, and a div where the code of the selected page is inserted.
So the javascript code must be writen in the var xxx = function() {} mode, and not as function xxx() {}. So I have to make a few changes:
line 34 funtion dtmlXMLLoaderObject(funcObject, dhtmlObject, async, rSeed) to dtmlXMLLoaderObject = function(…)
line 858 function dataProcessor(serverProcessorURL) to dataProcessor = function(…)
¿Is there an uncompressed version of dhtmlxscheduler.js available?
Thanks
In debug code, locate the next line
dataProcessor.prototype._o_init = dataProcessor.prototype.init;
and delete all code from it , till next line
if (window.dhtmlXGridObject){
This part of code is responsible for debug output and can be safely removed from the js file.
Thanks for the answer.
dp._console.style.visibility = “hidden”;
did also the trick.
I’ve found that when printing, the print page shows only my question and first two answers, not the third. I’m using firefox.
Thanks