?
Solved

object tag

Posted on 2001-06-20
13
Medium Priority
?
206 Views
Last Modified: 2010-04-09
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
Comment
Question by:memilavi
[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
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 15

Expert Comment

by:a.marsh
ID: 6212316
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
 

Author Comment

by:memilavi
ID: 6212961
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
 
LVL 15

Expert Comment

by:a.marsh
ID: 6213464
Are you just trying it in IE? Or Netscape aswell?

Ant
0
7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

 
LVL 19

Accepted Solution

by:
DreamMaster earned 280 total points
ID: 6213629
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
 

Author Comment

by:memilavi
ID: 6221625
The object is an OCX file.
I didn't understand from you if OCX can or cannot be used in object tag.
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6223901
It can....usually at least....

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

Max.
0
 
LVL 2

Expert Comment

by:kikkertm
ID: 6318102
If you say your object is an .ocx, why is the codebase pointing to a .DLL ??
0
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6319627
kikkertm > That is what had me confused as well...

Max.
0
 

Expert Comment

by:teacher_mod
ID: 6374563
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
 
LVL 15

Expert Comment

by:a.marsh
ID: 6375189
mmm...I think delete or 0 PAQ.

Ant
0
 
LVL 2

Expert Comment

by:kikkertm
ID: 6375420
I agree with a.marsh. Delete !
0
 

Author Comment

by:memilavi
ID: 6376257
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
 
LVL 19

Expert Comment

by:DreamMaster
ID: 6376994
Well...glad I was helpfull memilavi...

Max.
0

Featured Post

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

764 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