addMarkedTimespan not working ie

Hi

   when i tried to attach 
  addMarkedTimespan({ start_date:new Date("2014,7,5 06:30:00"),
                                            end_date:new Date("2014,7,5 20:45:00"),
                                             css: "myOwnDefinedcss"});

its working fine in all browser except ie,please help me regarding issue.
but when i use
addMarkedTimespan({ days: new Date(2014,6,4),
zones: “fullday”,
css: “myOwnDefinedcss”});
this is working in all browser even in ie please help me

Hi folks,

 Not a singlr reply yet

Hi,
IE can’t parse a string to get the correct date. Please use the standard constructor:

new Date(2014,7,5,06,30,00);

Hi SergeM ,
Using this kind of constructor addMarkedTimespan neither working in ff or ie,
i.e inside dhx_scale_holder div not a single div creating ,but when i use
addMarkedTimespan({ start_date:new Date(“2014,7,5 06:30:00”),
end_date:new Date(“2014,7,5 20:45:00”), its working in ff but not in ie.

then help me exactly which will wotk in ie using addMarkedTimespan specific time

Hi,
please open our demo:
docs.dhtmlx.com/scheduler/sample … spans.html
and try to add from console in FF and IE:

scheduler.addMarkedTimespan({ start_date: new Date(2012,7,10,5,30), end_date: new Date(2012,7,10,15,15), css: "red_section" }); scheduler.updateView();
Does it work ?

THANKS A LOT ,WORKING AWESOME

You are welcome. Does it solve your issue?

Hi

Actually not its displaying colors in ie also but one problem,if two marked spans are there its creating problem only last div color comming in ie

Hi,
could you attach a code and a screenshot?

Hi

        Local ie its working super fine but in server its not working,why is it so?

Hi,
could you send me in PM a link to the demo on the server?

Hi
You are awesome :smiley: ,everything working but i want to clear markedspan before addMarkings. i am using below code

[code]scheduler.attachEvent(“onViewChange”, function (new_mode , new_date){
$.each(result, function(index) {
var t =result[index].start_date.split(/[- :]/);
var st_dt = new Date(t[0],parseInt(t[1])-1,parseInt(t[2]),parseInt(t[3]),parseInt(t[4]));
var sttime = t[3]+":"+t[4];
t =result[index].end_date.split(/[- :]/);
var en_dt =new Date(t[0],parseInt(t[1])-1,parseInt(t[2]),parseInt(t[3]),parseInt(t[4]));

                    var options = {
           start_date:st_dt,
           end_date:en_dt,

           css: result[index].css,
           html:sttime+"-"+edtime
           };
         scheduler.deleteMarkedTimespan(options);   

           scheduler.addMarkedTimespan(options); 
           scheduler.updateView();
                });
                scheduler.updateView();

});
[/code]

Using deleteMarkedTimespan its deleting exsting marked (if single day two marked timespan are available),if not using its applying that color again and again on view change which looks odd .

:cry: till now no reply
can anybody help me.

Hi,
that’s right, when you add timespans with the identical configuration, each is rendered on top of the previous one. You need to delete a previous timespan with the method “scheduler.deleteMarkedTimespan()” :

var spanID = scheduler.addMarkedTimespan({ days: [0,1], zones: "fullday" }); scheduler.deleteMarkedTimespan(spanID);

Hi

If i will delete spanid existing spans deleting i.e suppose same day 3 markedspans are available only one displaying.

If not deleting, displaying correctly but rendering next page problem.if we will able to clear all marked spans before rendering starts,it will work fine.