Stack overflow at line: 1785

I’m using the connector to load data into my scheduler. The XML that I get looks good:

<?xml version='1.0' encoding='utf-8' ?>

But then I get the message “Stack overflow at line: 1785” in IE. Firebug displays “too much recursion”.

The error occurs in dhtmlxscheduler_debug.js, at this location:

if (window.dataProcessor){ dataProcessor.prototype.init_original=dataProcessor.prototype.init; dataProcessor.prototype.init=function(obj){ this.init_original(obj);

Is this a bug or am I doing something wrong?

Hello,

  1. What version of scheduler are you using? Try updating to the latest - 2.3
  2. Please copy code where you load your xml.
  3. If your site is available in the internet — please provide a link.

I loaded events from your xml without problem.

Best regards,
Ilya

I am using version 2.3.
My JavaScript code:

scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.config.lightbox.sections=[ {name:"description", height:130, map_to:"text", type:"textarea" , focus:true}, {name:"location", height:43, type:"textarea", map_to:"details" }, {name:"time", height:72, type:"time", map_to:"auto"} ] scheduler.config.first_hour=8; scheduler.locale.labels.section_location="Location"; scheduler.config.details_on_create=true; scheduler.config.details_on_dblclick=true; scheduler.init('myScheduler',null,"month"); scheduler.load("events.do?uid="+scheduler.uid()); var dp = new dataProcessor("events.do"); dp.init(scheduler);

The connector is the 0.9 Java version, and the code for the scheduler data is:

SchedulerConnector c = new SchedulerConnector(conn,DBType.PostgreSQL); c.render_table("events","event_id","start_date,end_date,event_name,details","","");

By any chance are you including the dhtmlxdataprocessor_debug.js on the same page?
scheduler_debug.js already includes all necessary code, so you must not include such files as dataprocessor.js or connector.js

Yes, I did include the other files. Now that I’m only including dhtmlxscheduler.js, it works fine. Thanks for the tip!