• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 214
  • Last Modified:

object tag

Hi guys.

I'm trying to use the object tag in my HTML page.
my HTML looks like:
<OBJECT ID="myobj" CLASSID="clsid:XXXXXXXXXXXXXXXXXXX..." CODEBASE="my.doamin.com/myobj/myobj.dll">
Object instantiation failed!
</OBJECT>

When I run this page, I get the "Object instantiation failed!" message.
The URL is right, and so is the class ID.
What could be wrong?
0
memilavi
Asked:
memilavi
  • 4
  • 3
  • 3
  • +2
1 Solution
 
a.marshCommented:
What kind of object is it? The text between the <object> tags gets displayed when the browser cannot display the object - maybe because it does not support it....

:o\

Ant
0
 
memilaviAuthor Commented:
The object is a standard COM object.
When I try to initiate it using the 'createObject' method of VBScript, it works without any problem.
0
 
a.marshCommented:
Are you just trying it in IE? Or Netscape aswell?

Ant
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
DreamMasterCommented:
If I am not mistaking any ActiveX objects that will be used in standard HTML should be compiled as ActiveX OCX files....server sides are DLL's....could this possibly be the source of your problems as you say that it works using the CreateObject command?

Cheers,
Max.
0
 
memilaviAuthor Commented:
The object is an OCX file.
I didn't understand from you if OCX can or cannot be used in object tag.
0
 
DreamMasterCommented:
It can....usually at least....

There might have been made a mistake in the creation of that object though....

Max.
0
 
kikkertmCommented:
If you say your object is an .ocx, why is the codebase pointing to a .DLL ??
0
 
DreamMasterCommented:
kikkertm > That is what had me confused as well...

Max.
0
 
teacher_modCommented:
This question has been abandoned. Would the experts please indicate how
this should be closed out. Is there a comment which should be accepted?
Should the points be split? Should it be reduced to zero points and PAQed?
should it be deleted?  In the absence of direction, the default will be
for me to delete.

TIA for helping to clean up the old questions.

teacher_mod
Community Support Moderator
Experts-Exchange
teacher_mod@experts-exchange.com


0
 
a.marshCommented:
mmm...I think delete or 0 PAQ.

Ant
0
 
kikkertmCommented:
I agree with a.marsh. Delete !
0
 
memilaviAuthor Commented:
Hi guys.

Sorry for not responding for a lot of time, but I found the answer myself, and in was none of the answers here.

The answer is, the ocx should be visibe, that is - a User Control in VB. Invisible objects just won't do.

The closest answer was DreamMasters', and therefore he gets the points.
0
 
DreamMasterCommented:
Well...glad I was helpfull memilavi...

Max.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 4
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now