Note that there are some explanatory texts on larger screens.

plurals
  1. POdhtmlx multiple scheduler not working error "Scheduler is not defined"
    text
    copied!<p>I'm implementing dthmlx schedule in my website. On dashboard I need to show three scheduler in tabs. However scheduler in first tab is working but for second scheduler while initiating an object I'm getting error "Scheduler is not defined". Following is my code.</p> <pre><code>&lt;script type="text/javascript" charset="utf-8"&gt; function init() { scheduler.config.multi_day = true; scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.init('scheduler_here',new Date(2013,0,10),"week"); scheduler.load("./data/events.xml"); scheduler1 = Scheduler.getSchedulerInstance(); scheduler1.config.multi_day = true; scheduler1.config.xml_date="%Y-%m-%d %H:%i"; scheduler1.init('scheduler_here_1',new Date(2013,0,10),"week"); scheduler1.load("./data/events.xml"); } function show_minical(){ if (scheduler.isCalendarVisible()) scheduler.destroyCalendar(); else scheduler.renderCalendar({ position:"dhx_minical_icon", date:scheduler._date, navigation:true, handler:function(date,calendar){ scheduler.setCurrentView(date); scheduler.destroyCalendar() } }); if (scheduler1.isCalendarVisible()) scheduler1.destroyCalendar(); else scheduler1.renderCalendar({ position:"dhx_minical_icon_1", date:scheduler1._date, navigation:true, handler:function(date,calendar){ scheduler1.setCurrentView(date); scheduler1.destroyCalendar() } }); } &lt;/script&gt; &lt;body onload="init();"&gt; &lt;div id="scheduler_here" class="dhx_cal_container" style='width:50%; height:100%;'&gt; &lt;div class="dhx_cal_navline"&gt; &lt;div class="dhx_cal_prev_button"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_next_button"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_today_button"&gt;&lt;/div&gt; &lt;div class="dhx_cal_date"&gt;&lt;/div&gt; &lt;div class="dhx_minical_icon" id="dhx_minical_icon" onclick="show_minical()"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="day_tab" style="right:204px;"&gt;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="week_tab" style="right:140px;"&gt;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="month_tab" style="right:76px;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="dhx_cal_header"&gt; &lt;/div&gt; &lt;div class="dhx_cal_data"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="scheduler_here_1" class="dhx_cal_container" style='width:100%; height:100%;'&gt; &lt;div class="dhx_cal_navline"&gt; &lt;div class="dhx_cal_prev_button"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_next_button"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_today_button"&gt;&lt;/div&gt; &lt;div class="dhx_cal_date"&gt;&lt;/div&gt; &lt;div class="dhx_minical_icon_1" id="dhx_minical_icon_1" onclick="show_minical()"&gt;&amp;nbsp;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="day_tab" style="right:204px;"&gt;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="week_tab" style="right:140px;"&gt;&lt;/div&gt; &lt;div class="dhx_cal_tab" name="month_tab" style="right:76px;"&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class="dhx_cal_header"&gt; &lt;/div&gt; &lt;div class="dhx_cal_data"&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>All require files are included properly. What exactly going wrong ?</p>
 

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