Using ActiveX Components with JScript : JavaScript DHTML examples (example source code) » Development » ActiveX

JavaScript DHTML
C++
Java Products
Java Articles
JavaScript DHTML Home  »   Development   » [  ActiveX  ]   
 



Using ActiveX Components with JScript

Please note that some example is only working under IE or Firefox.


/*
Mastering JavaScript, Premium Edition
by James Jaworski 

ISBN:078212819X
Publisher Sybex CopyRight 2001
*/

<HTML>
<HEAD>
<TITLE>ActiveX Demo</TITLE>
</HEAD>
<BODY>
<P><I>Note this page requires Internet Explorer 5.0 or later.</I></P>
    <OBJECT ID="ProgressBar1" WIDTH=400 HEIGHT=33
     CLASSID="CLSID:0713E8D2-850A-101B-AFC0-4210102A8DA7">
        <PARAM NAME="_ExtentX" VALUE="10583">
        <PARAM NAME="_ExtentY" VALUE="873">
        <PARAM NAME="_Version" VALUE="327682">
        <PARAM NAME="Appearance" VALUE="1">
    </OBJECT>
<P>
    <SCRIPT LANGUAGE="JavaScript" FOR="Slider1" EVENT="Change()">
<!--
ProgressBar1.value = Slider1.value
-->
    </SCRIPT>
    <OBJECT ID="Slider1" WIDTH=400 HEIGHT=33
     CLASSID="CLSID:373FF7F0-EB8B-11CD-8820-08002B2F4F5A">
        <PARAM NAME="_ExtentX" VALUE="10583">
        <PARAM NAME="_ExtentY" VALUE="873">
        <PARAM NAME="_Version" VALUE="327682">
        <PARAM NAME="Max" VALUE="100">
    </OBJECT>
<P><B>Move the slider and watch the progress bar change.</B></P>
</BODY>
</HTML>
Related examples in the same category
1.   Accessing ActiveX Controls
2.  Using JScript to Interact with ActiveX Controls








Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.