Hello,
I have a problem with deleting events in the mobile scheduler.
When i want to delete 2 or more events, the scheduler shows the following error on the second delete: “date.getFullYear is not a function”.
This error occurs in the function dateToStr in dhtmlxscheduler_mobile.js.
This happens with events loaded from database as well with new events.
CompuFit
Hello,
we have not reproduced the problem locally. Can we reproduce the problem in a sample from scheduler package ?
Hello,
I have solved the problem.
The problem occurs when i want to save, update or delete an appointment.
The scheduler sends a request with the data of the appointment to the server and expects the following response:
<data>
<action type='add/update/delete' sid='oldid' tid='newid'></action>
</data>
When the scheduler doesn’t get this response, the next time i want to save an appointment i get the error ‘date.getFullYear is not a function’.
For me this was a problem when i wanted to save offline.
I solved this problem in this post: http://forum.dhtmlx.com/viewtopic.php?f=24&t=20521
So if i i’m online and the server returns the previous code to the scheduler saving, updating and deleting goes without a problem.
CompuFit