memilavi
asked on
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:XXXXXXXXXXX XXXXXXXX.. ." CODEBASE="my.doamin.com/my obj/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?
I'm trying to use the object tag in my HTML page.
my HTML looks like:
<OBJECT ID="myobj" CLASSID="clsid:XXXXXXXXXXX
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?
ASKER
The object is a standard COM object.
When I try to initiate it using the 'createObject' method of VBScript, it works without any problem.
When I try to initiate it using the 'createObject' method of VBScript, it works without any problem.
Are you just trying it in IE? Or Netscape aswell?
Ant
Ant
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The object is an OCX file.
I didn't understand from you if OCX can or cannot be used in object tag.
I didn't understand from you if OCX can or cannot be used in object tag.
It can....usually at least....
There might have been made a mistake in the creation of that object though....
Max.
There might have been made a mistake in the creation of that object though....
Max.
If you say your object is an .ocx, why is the codebase pointing to a .DLL ??
kikkertm > That is what had me confused as well...
Max.
Max.
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-exchan ge.com
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-exchan
mmm...I think delete or 0 PAQ.
Ant
Ant
I agree with a.marsh. Delete !
ASKER
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.
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.
Well...glad I was helpfull memilavi...
Max.
Max.
:o\
Ant