Passing parameters into a ActiveX control ? 
Author Message
 Passing parameters into a ActiveX control ?

[Please do not mail me a copy of your followup]



Quote:
>How do I pass parameters into a ActiveX control ?

In HTML you use the <PARAM> inside an <OBJECT> tag like so:

<OBJECT ID="MediaPlayer1" WIDTH=320 HEIGHT=240
  CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
  STANDBY="Loading Windows Media Player components..."
  TYPE="application/x-oleobject">

  <PARAM NAME="FileName" VALUE="C:\ASFRoot\Welcome.asf">
  <PARAM NAME="ShowControls" VALUE="False">
  <PARAM NAME="AutoRewind" VALUE="True">
  <PARAM NAME="AutoStart" VALUE="False">
</OBJECT>

--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
  Direct3D Book http://www.*-*-*.com/ ~legalize/book/
    Don't Support Spammers!  Boycott Fractal Painter 7!
      http://www.*-*-*.com/ ~legalize/spammers.html



Mon, 17 May 2004 04:29:48 GMT  
 Passing parameters into a ActiveX control ?
Thanks for the reply.
? If the property value can be different each time how do
I set the property;
<PARAM NAME="UserID" VALUE=?????>
Can a varible be used ? such as;
<PARAM NAME="UserID" VALUE=strUserID>
how would you do this ?

Thanks

Quote:
><OBJECT ID="MediaPlayer1" WIDTH=320 HEIGHT=240
>  CLASSID="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95"
>  STANDBY="Loading Windows Media Player components..."
>  TYPE="application/x-oleobject">

>  <PARAM NAME="FileName" VALUE="C:\ASFRoot\Welcome.asf">
>  <PARAM NAME="ShowControls" VALUE="False">
>  <PARAM NAME="AutoRewind" VALUE="True">
>  <PARAM NAME="AutoStart" VALUE="False">
></OBJECT>



Tue, 18 May 2004 03:04:37 GMT  
 Passing parameters into a ActiveX control ?
[Please do not mail me a copy of your followup]



Quote:
>? If the property value can be different each time how do
>I set the property;

I would do it through script and not the PARAM tag:

    document.all("MediaPlayer1").FileName = "foo.avi"
--
Ask me about my upcoming book on Direct3D from Addison-Wesley!
  Direct3D Book http://www.xmission.com/~legalize/book/
    Don't Support Spammers!  Boycott Fractal Painter 7!
     http://www.xmission.com/~legalize/spammers.html



Tue, 18 May 2004 03:21:21 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help on Passing parameter to an ActiveX control in IE

2. Help on Passing parameter to an ActiveX control in IE

3. Passing parameters to an ActiveX Control

4. Help on Passing parameter to an ActiveX control in IE

5. Passing Parameters to an ActiveX control

6. URGENT: Can't pass parameters using Crystal ActiveX control

7. ActiveX control and passing parameters

8. How to pass a VB intrinsic Control as parameter to an ActiveX control (UserControl)

9. Passing Parameters to ActiveX Control

10. Passing ActiveX Control as parameter into a function

11. passing parameter from HTML to ActiveX Control

12. Passing parameters to ActiveX control

 

 
Powered by phpBB® Forum Software