Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove block area from dhtmlx scheduler
    primarykey
    data
    text
    <p>I am using DHTMLX Scheduler for booking an appointments. To avoid a double booking I have shown a block on a time slot which has already been selected by some other user but yet to be done with appointment process.</p> <p>I have setInterval to check the status of appointment which is currently in process by some other users.</p> <p>What I want is if I get some data in setInterval that particular block should be removed. Following is a script that I am using to show block and other appointments on scheduler.</p> <pre><code>// This is how I'm showing block area on scheduler scheduler.addMarkedTimespan({ start_date: new Date(2013,11,29,01,00), end_date: new Date(2013,11,29,01,10), css: "inprocess", sections: { unit: 'a7b6e635-f62f-6f12-020f-52a959d1ca47' } }); // This is how I'm showing appointments on scheduler scheduler.config.multi_day = true; scheduler.init('scheduler_here',new Date(2013,11,29),"unit"); scheduler.parse([{"start_date":"2013-12-29 01:13","end_date":"2013-12-29 01:23","text":"&lt;div style='float: left;'&gt;Booked&lt;\/div&gt;&lt;div style='float: right; scheduler.updateView(); </code></pre> <p>The sections which are inprocess I wish to update per five seconds which is why I have call setInterval. Im getting same data in json as inprocess from setInterval. I wish to update that particular section. It could be add more block area which are in process or remove existing blocks.</p> <p>Well I already know how can I add more blocks, I'm stuck at how can I remove existing block areas/in process areas.</p> <p>*I don't want to update whole sections for that.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload