Categories | Question details Back To List | ||
dhtmlxscheduler, dataprocessor and updating event Hi, this is my code <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/dhtmlxscheduler_debug.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxscheduler_expand.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxscheduler_year_view.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxscheduler_agenda_view.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxscheduler_recurring.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxscheduler_key_nav.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/codebase/ext/dhtmlxdataprocessor.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/sources/locale_cs.js"></script> <script type="text/javascript" charset="utf-8" src="/lib-js/kalendar/sources/locale_recurring_cs.js"></script> <script type="text/javascript" charset="utf-8"> function initCalendar() { scheduler.config.multi_day = true; scheduler.config.show_loading = true; scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.init('scheduler_here', null, "month"); var dp = new dataProcessor("/admin/crm/kalendar.script.php"); dp.init(scheduler); dp.setTransactionMode("POST"); scheduler.load("/admin/crm/kalendar.script.php"); dp.sendData(); } </script> and my problem is: when I'm editing or adding event then all parameters are succesfuly sent but when I try to change the same event which I added / changed just before, then are parameters empty and so I can't proceed mysql update. Thanks for any help... David Answer posted by Support on Jan 22, 2010 06:19 a) you need not include dataprocessor.js file, it is already included as part of dhtmlxscheduler.js b) if you are using custom code for new event adding - be sure that you provide correct new ID value for response ( in case of connectors can be done by calling "success" method with new ID value ) |