Categories | Question details Back To List | ||
Events in dhtmlxCalendar not saved I have just installed dhtmlxCalendar which looks very nice. But I cannot find what to do to make it save events. When I make a new event of edit another event, all changes are lost after a refresh of the page. What am I forgetting? Mike Answer posted by Alex (support) on Sep 01, 2009 09:01 Calendar doesn't save values in cookie automatically. You can can apply own functionality that will save and restore selected date in cookie: var date = calendar.getDate(); calendar.setDate(date); Answer posted by Mike W on Sep 01, 2009 09:18 I don't understand... a calendar that cannot save events? Answer posted by Alex (support) on Sep 01, 2009 09:51 After page refreshing - calendar is initialized again with settings that are defined in its initialization code. The previous selection isn't saved automatically. Do you mean dhtmlxCalendar ? Possibly you asked about dhtmlxScheduler ..? Answer posted on Sep 01, 2009 09:51 oops, yes you are right. it is indeed dhtmlxScheduler... Answer posted by Support on Sep 01, 2009 11:11 Samples which loads from static XML can't save data back to the server. You need to have some kind of server side scripting available - default package contains sample for php , .net and java can be downloaded separately. Please check samples/initialization_loading/loading_mysql.html as example. It uses samples/initialization_loading/events.php for server side action, format of php file is described here http://dhtmlx.com/docs/products/dhtmlxScheduler/doc/dhtmlxscheduler___server_side_integration.html#sch_ssi to communicate with server side, client side code need to have two next commands var dp = new dataProcessor("php/events.php"); //url to server side script dp.init(scheduler); |