FP2000: How to Add a Script to the ActiveX Calendar Control

ID: Q205686


The information in this article applies to:


SUMMARY

The ActiveX Calendar Control provides a way of displaying calendar-related events on a Web page. ActiveX Controls may be combined to add greater functionality to your Web pages than would be possible with a single control.

NOTE: Microsoft Office 2000 installs the ActiveX Calendar Control. If you do not have Microsoft Office installed, the Calendar Control may not appear in the Pick A Control list.


MORE INFORMATION

ActiveX Controls are a suite of products and technologies that support Web development, and enable software components to interact with one another. ActiveX Controls are based on the Component Object Model (COM).

For more information about ActiveX Controls, please see the following Microsoft World Wide Web site:

http://www.microsoft.com/activex/gallery

For more information about Microsoft Visual Basic Scripting, please see the following Microsoft World Wide Web site:

http://www.microsoft.com/vbscript
To display the date you selected in a message box, follow these steps:
  1. Open a page in the Page view of FrontPage.


  2. On the Insert menu, point to Advanced, and then click ActiveX Control.


  3. In the Pick A Control list, click Calendar Control 9.0 and click OK.


  4. Click the HTML tab


  5. Insert the following code under the <BODY> tag:
    
    <SCRIPT LANGUAGE=vbscript>
    <!--
    Sub Calendar1_Click()
    Call window.alert(Calendar1.Value)
    End Sub
    -->
    </SCRIPT> 


  6. Save the page and preview the page in the browser


Additional query words: scripting controlling active x


Keywords          : fpedit fpscript 
Version           : WINDOWS:
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: July 1, 1999