Hi,
I’ve downloaded dhtmlxConnector_net.zip: all run ok but when I try to add dhtmlxscheduler_year_view.js I recive this error:
Microsoft JScript runtime error: ‘scheduler.templates’ is null or not an object
This is the page code:
[code]
<script type="text/javascript" charset="utf-8">
function init() {
scheduler.config.xml_date = "%Y-%m-%d %H:%i";
scheduler.config.lightbox.sections = [
{ name: "description", height: 130, map_to: "text", type: "textarea", focus: true },
{ name: "location", height: 43, type: "textarea", map_to: "details" },
{ name: "Tags", height: 30, type: "textarea", map_to: "Tags" },
{ name: "time", height: 72, type: "time", map_to: "auto" }
]
scheduler.config.first_hour = 8;
scheduler.config.last_hour = 19;
scheduler.config.hour_size_px = 84;
scheduler.locale.labels.section_location = "Sala";
scheduler.locale.labels.section_Tags = "Tags";
scheduler.config.details_on_create = true;
scheduler.config.details_on_dblclick = true;
scheduler.init('scheduler_here', new Date(2010, 8, 19), "year");
scheduler.setLoadMode("year");
scheduler.load("schedulerConnector.ashx" + "?uid=" + scheduler.uid());
var dp = new dataProcessor("schedulerConnector.ashx" + "?uid=" + scheduler.uid());
dp.init(scheduler);
}
if (window.attachEvent)
window.attachEvent("onload", init);
else
window.addEventListener("load", init, false)
</script>
<div id="scheduler_here" class="dhx_cal_container" style='width: 1000px; height: 700px;
position: relative;'>
<div class="dhx_cal_navline">
<div class="dhx_cal_prev_button">
</div>
<div class="dhx_cal_next_button">
</div>
<div class="dhx_cal_today_button">
</div>
<div class="dhx_cal_date">
</div>
<div class="dhx_cal_tab" name="day_tab" style="right: 204px;">
</div>
<div class="dhx_cal_tab" name="week_tab" style="right: 140px;">
</div>
<div class="dhx_cal_tab" name="year_tab" style="right: 280px;">
</div>
<div class="dhx_cal_tab" name="month_tab" style="right: 76px;">
</div>
</div>
<div class="dhx_cal_header">
</div>
<div class="dhx_cal_data">
</div>
</div>
</td>
</tr>
</table>
</div>
</form>
[/code] |
Be sure to use all js file from latest standalone package.
Connector’s package contains a bit outdated js files ( new version of js file will work with .net connectors )