dhtmlxCalendar not working from Remote host

We are testing dhtmlxCalendar, so that it can be used in our web application. When the application is deployed in local machine it working fine.

But when its deployed in remote machine and accesed locally via browser;

  1. In IE we can see the schedules for a particular month, but on deleting or updating the values calendar does not get refreshed but the changes are reflected in the DB.
  2. In Firefox the calendar gets displayed minus the schedules. On debugging we found that an error msg was given from
    dhtmlxError.throwError(“LoadXML”, “Incorrect XML”, [

A few pointers on what we missed would be helpful.

You may include dhtmlxscheduler_debug.js instead of dhtmlxscheduler.js to get details about the problem and enable server-side logging.

Hi Alexandra, Thanx for your suggestions.

The XML which is given as input to the calendar comes via Java Servlet.

When the Servlet URL is accessed separately in the browser we are able to see the xml contents. But when that URL is given to the dhtmlxCalendar it gives an alert “Incorrect XML”.

When the servlet response is saved as an xml file and that file is given as input its working.

We used both the scripts dhtmlxscheduler_debug.js and dhtmlxscheduler.js for checking.

I have pasted the code so that i could get some pointers.

function init() {
//scheduler.config.multi_day = true;
var contextpath = ‘<%=request.getContextPath()%>’;
var url = contextpath+"/calendarxml?cdnid="+cdnvalue;

scheduler.config.xml_date="%Y-%m-%d %H:%i";
scheduler.config.dhtmlDragAndDropObject = false;
scheduler.init('scheduler_here',new Date(),"month");

function block_readonly(id){
		if (id!=null)
		return !this.getEvent(id).readonly;




the problem can be caused by an incorrect content-type (it must be text/xml) or a whitespace before <?xml declaration. The details are here:

docs.dhtmlx.com/doku.php?id=othe … orrect_xml

Hi, Thanx for you suggestions.
Its now working fine after setting the content type.
You really are a savior.