Thank you for the sample, much easier that way.
Found the problem, that was quite interesting: in ‘onBeforeEventDelete’ recurring.js logic added new event with addEvent where your code sent data to the server and changed it’s id but recurring.js didn’t knew about it and later on called another function with the old id.
I’ve modified the code and attached updated version, does it work correctly now?
Note: Info also sent to support site with login details:
I have now got round to trying your fix ‘recurring.js’ file for this problem and I now get further but there are still some issues.
a) If I set up a recurring event then open an individual event and delete it, the ‘id’ sent in the ‘delete’ does not match any ‘id’ on the server and therefore fails.
b) If I set up a recurring events then open an individual event and ‘change the text’ on ‘save’ the screen locks up.
Note: Because of these issues not all the server logic has been tested.
Ok I will look at raising a ticket on this issue but just on the delete case above - I understand that you add an event to the database but you are actually adding an event and then trying to delete an event with an invalid ‘id’.
Try using attached file, does it help with described issues?
I meant support system, not our email While we strive to be as helpful as possible on the forums and love feedback and bug reports yet we provide support as a service through support system for our customers who purchased license.
Thanks for the new file - unfortunatley it does not seem to have solved the two issues with recurring events.
I understand what you meant about raising the ticket and the license.
I am working on a project for a small startup who want to see a working demo before going forward with the real development so I need to talk to them about paying for a license.
I have done a little debugging on IE9 fault - save individual event from series locks up the screen with fault:
Unable to set value of the property ‘_pid_time’: object is null or undefined
dhtmlxscheduler_recurring.js, line 1 character 5009
Without fully understanding the code I think I can see what is going wrong.
scheduler.attachEvent("onEventChanged",function(H){
if(this._loading){
return true
}
var F=this.getEvent(H);
if(H.toString().indexOf("#")!=-1){
var H=H.split("#");
(Set G to new uid)
var G=this.uid();
this._not_render=true;
var E=this._copy_event(F);
I’ve tried to check it on your site which your earlier emailed us and notice that you still using previous dhtmlxscheduler_recurring.js file.
I’ve attached updated one (which I’ve included before) but now it’s uncompressed version so it would be easier to debug.
Can you please put it on your site so I could change what is wrong there?
I have decided to load the website (you can use the login I sent you) with the previous version of the file you sent me as this works on IE/FF and Safari and shows the problem as I described above - in two posts on this thread on Wed Jun 22.
While testing this locally I noticed one other thing of note - if you try ‘saving’ or ‘deleting’ an individual event from a series on IE9 you get a failure due to the ‘id’ being eg.
’10%231308852900’ but on FF this is seen as ’10#1308852900’.
In the FF case the server sees this id=’10’ because ‘#’ is taken as the end of the URL.
I think the last issue is just a quirk of the ‘#’ coding but it explains why we get different behaviour with IE and FF.
I am still very confused why the id with the hash is needed at all sent to the server.
Was this issue resolved? I see the same issue with the sample code from dhtmlxScheduler_v30_120111, in the file 01_recurring_events.html
I have not modified any thing in the Javascript, PHP or mySQL database. Everything is as-is clean from the samples folder. Except in the file 01_recurring_events.html
I replaced the minimized version of recurring and scheduler js with full source code.
Running this in Firefox 10.0.1
Debugging in Firebug I got this far:
When editing a recurring event, the error is in recurring.js file, on the line var top = …
_init_set_value:function(node, value, ev){
...
var top = node.getElementsByTagName("FORM")[0]; //<--- this line throws an error
// node is a <TextNode with value "undefined"
This HTML inside lightbox is the problem
[code]
Description
Disabled
Repeat event
undefined
Time period
[/code]
In dhtmlxscheduler_debug.js this code finds the sibling for div area_1329318503533 and that sibling div is “undefined”
var sns = this.config.lightbox.sections;
for (var i=0; i < sns.length; i++) {
var node=document.getElementById(sns[i].id).nextSibling;
var block=this.form_blocks[sns[i].type];
block.set_value.call(this,node,ev[sns[i].map_to],ev, sns[i]);
if (sns[i].focus)
block.focus.call(this,node);
}