Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Jeremy on Oct 28, 2009 07:39
open dhtmlx forum
scheduler

Hi

I'm using the scheduler and I'm getting some strange problems with caching. I'm loading the events separately via xml with a URL behind them and if I change the data elsewehre (ie another user changes the data, the new data is not reloaded. Is there any way I can tell it to reload the xml every time?

on a separate note, I'm having trouble with Firefox loading the xml. If I save my generated xml to a flat file and load it its fine.

Regards

Jeremy
Answer posted by Alex (support) on Oct 28, 2009 09:17

Hello, 

in order to reload scheduler you can use the following method:

scheduler.clearAll();

scheduler.load(...);

Regarding the issue with loading - do you use connector to generate xml ? 

Answer posted by Jeremy on Oct 28, 2009 09:30

Hi

I fixed both problems

 

the XML load problem was because I wasn't sending a text/xml header. IE seems to be more forgiving on this

and the caching can be fixed by sending a

CACHE-CONTROL:NO-CACHE

header

 

Thanks

 

Jeremy