Skip to content

OnDefineScriptIncludes - cLocalWebControlHost

Called when generating the virtual HTML

Type: Event

Parameters

Parameter Type Description
ByRef aScriptHtml String[] String array to be extended with custom script includes

Syntax

Procedure OnDefineScriptIncludes ByRef String[] aScriptHtml

Description

Implement this event to add custom script includes to the header of the HTML loaded in the web control host.

This would be necessary to load custom controls.

Sample

The example below shows how to add includes for running the WebDhxScheduler control.

Procedure OnDefineScriptIncludes String[] ByRef aScriptHtml 
    Move """ 
        <!-- DHTMLX Scheduler --> 
        <script src="dhtmlx/codebase/dhtmlxscheduler.js" type="text/javascript"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_limit.js"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_units.js"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_timeline.js"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_multiselect.js"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_tooltip.js"></script> 
        <script src="dhtmlx/codebase/ext/dhtmlxscheduler_minical.js"></script> 
        <link rel="stylesheet" href="dhtmlx/codebase/dhtmlxscheduler.css" type="text/css"> 

        <script src="dhtmlx/codebase/locale/locale_nl.js"></script> 
        <script src="Custom/WebDhxScheduler.js"></script> 
        """ to aScriptHtml[SizeOfArray(aScriptHtml)] 
End_Procedure