safari,google chrome,firefox can't loading data.

[color=red]Javascript
Scheduler.init(‘scheduler_here’,null,’week’);
Scheduler.load(‘m.do?method=loadXML’)
[color=red]Java:
response.getWriter().write(sb.toString());

use scheduler.load(‘data.xml’) on Javascript, It’s all browsers will be Ok.
use Scheduler.load(‘m.do?method=loadXML’) only IE can be run and other browser have Exception!

help me.

Are you talking about scheduler plugin or standalone usage?
Could you provide data.xml and m.do?method=loadXML (generated xml)?

I call a Java method,and return xml format data.
java code:
public ActionForward loadScheduleOnXML(ActionMapping mapping,
ActionForm form, HttpServletRequest request,
HttpServletResponse response) {
log.debug(“loading method loadScheduleOnXML”);
List schList = newschedule.loadScheduleOnXML();
SimpleDateFormat sdf = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss”);
StringBuffer sb = new StringBuffer("");
for (TLsmLeadSchedule scheduler : schList) {
sb.append("<event id=""+scheduler.getScheduleId()+"">");
sb.append("<start_date></start_date>");
sb.append("<end_date></end_date>");
sb.append("");
sb.append("

");
sb.append("");
}
sb.append("");
try {
response.setHeader(“Expires”, “Sat, 6 May 1995 12:00:00 GMT”);
response.setHeader(“Cache-Control”, “no-store,no-cache,must-revalidate”);
response.addHeader(“Cache-Control”, “post-check=0, pre-check=0”);
// set HTTP/1.0 no-cache header.
response.setHeader(“Pragma”, “no-cache”);
response.getWriter().write(sb.toString());
} catch (IOException e) {
e.printStackTrace();
}
return null;
}

I using the scheduler plugin.

Do you mean Scheduler plugin for Joomla or Wordpress on Java server?

I am using dhtmlxScheduler 3.0 on Java server, page is jsp.
by the way. what’s the Joomla and WP?

:smiley: I already find right answer

Java code:response.setContentType(“application/xml”);

Good job!