Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ActiveX Param Tag

Posted on 2004-10-20
6
Medium Priority
?
582 Views
Last Modified: 2010-04-05
I am making an activeX control in delphi and would like to pass a parameter to it called Source.

If I use this in my HTML file to test the activeX, the controls property isnt set:

<OBJECT classid="CLSID:7B908D5D-6919-436A-A8C1-4C154233C1EF" name= "msapp" width="400" height="300">
  <PARAM name="Source" value="http://www.burtonsoftware.co.uk/MediaStudio/TestProject.cwp"/>

<embed src="http://www.burtonsoftware.co.uk/MediaStudio/TestProject.cwp" type="application/mediastudio" width=400 height=300></embed>
</OBJECT>

However, if I use this for the BODY tag it works.

<body onload='msapp.Source="http://www.burtonsoftware.co.uk/MediaStudio/TestProject.cwp";'>

I need my ActiveX control to get the variable from the PARAM tag, not the onload event. Is there anything I must do to my control to make this work? or is it a problem with the HTML? I can upload the source to my activeX control if it is needed.
0
Comment
Question by:paulb1989
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 1

Expert Comment

by:vacerose
ID: 12360501
try setting the codebase attribute of the OBJECT tag to the URI of your control

<OBJECT classid="CLSID:7B908D5D-6919-436A-A8C1-4C154233C1EF" name= "msapp" width="400" height="300" codebase="http://www.burtonsoftware.co.uk/MediaStudio/TestProject.cwp">

I think your OBJECT tag is being overridden by the EMBED tag becuse the codebase is not set
0
 
LVL 1

Expert Comment

by:vacerose
ID: 12360570
sorry, if the cwp file is not the activex control code you need to set the codebase to the control URI.

For example, if you are deploying as a cab
codebase="http://myserver/path/mycontrol.cab">

or ocx
codebase="http://myserver/path/mycontrol.ocx">
0
 
LVL 5

Author Comment

by:paulb1989
ID: 12361011
Nope thats not it...

I have uploaded my ActiveX control and added the URL as the codebase, but still nothing...

Here is my test page:
http://www.burtonsoftware.co.uk/Test.htm

For the activeX to work, you will need the following DLL file placed in your system32 folder aswell:
http://www.burtonsoftware.co.uk/downloadmsr100
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 5

Author Comment

by:paulb1989
ID: 12361069
Forgot to mention, when loaded the ActiveX will show a loading page and download http://www.burtonsoftware.co.uk/MediaStudio/TestProject.cwp into a string which is read by the DLL to create some objects on a form, which will be a child form of the ActiveX control.

If the ActiveX works, the loading project page will be replaced by some objects after the file is downloaded. The file is 128k so it shouldnt take too long.
0
 
LVL 1

Accepted Solution

by:
vacerose earned 500 total points
ID: 12363364
Here we go.  I loaded your ActiveX control locally and noticed the Source property was Write Only.

I was able to recreate the problem with my own test control with a Write Only property. Basically it was ignoring the value from the PARAM tag.  I deleted the property and recreated it as a Read/Write property and then I was able to set the value successfully using the PARAM tag.

So apparently the PARAM tag does not support Write Only activex control properties.
0
 
LVL 5

Author Comment

by:paulb1989
ID: 12367142
Thanks :)

That worked
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question