Customizer's Guide > Working with ActiveX Controls > Executing ActiveX Controls Using the .dcf File to Bind to an Element Directly > Example: Calendar Control > Scripting Overview
  
Scripting Overview
From an implementation perspective, the following actions occur.
When the user double-clicks the mouse or presses shift-Enter on a <date> element, a DOMActivate event is triggered.
The script file date.js (which we named date) is executed.
The Calendar control is displayed.
The Calendar control is assigned the variable name cal. This lets the script have access to the control's methods and properties.
The script method cal_OnInitialize(ActiveNode) is called.
When the user closes the dialog box, the script method cal_OnClose(ActiveNode) is called.