[thelist] How to Learn This?

Burhan Khalid burhankhalid at members.evolt.org
Sun Jun 23 19:25:11 CDT 2002


Salaam Zeeshan :
> <object id=hhctrl type="application/x-oleobject"
> classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11" width=12
> height=12>
> <PARAM name="Command" value="WinHelp, Popup">
> <PARAM name="Text" value="Text:rendering intent">
> <param NAME="fONT" VALUE="VERDANA,8,0x000800,underline">
> <PARAM name="Item1" value="windows.hlp">
> <PARAM name="Item2" value="ICM_DEF_RENDERING">
> </OBJECT>
>

Let me see if I can break each part down. Maybe this will help you to
learn from the code.

id=
	This is a unique identifier for this object tag. You can name it
anything you want.  It is used to manipulate the tag using the DOM.
getElementByID(__) *I think*

type=
	This tells the client (this case, a browser) what type of object
it is. In this case, it is OLE (Object Link Embedding) type object.

classid=
	According to the W3, this is usually the place (URI) where the
implementation of this object is. Since this is a Windows-specific
object, the classid is the key in the registery that points to the IE
OLE embedding engine(?). I'm not too sure about this one. It could also
point to the ActiveX object ID for the IE OLE container.

width, height =
	Self explanatory. The dimensions of the object to be rendered.
Although I suspect their values should be enclosed in " ".

<param name=/text/ value=/text/>
	The param tag (which stands for parameter, as I am sure you
knew) represents different parameters that you want to pass to the
object that you will be executing in that tag. For example, the first
param tag has a name "Command". This is the type of parameter (in this
case, it's the command that you want the OLE container to execute). The
value points to the actual command (in this case, WinHelp). These
parameters change depending on the type of object you are embedding. If
you look up the Active-X documentation for WinHelp, you will get a list
of all the parameters that you can pass and what they do.


Now, as to how to use it? The easiest way to mess around with this one
is to create a Windows Help file, and then replace Item1 with that help
file's name. Load the page in IE and see what it does. Also, check the
Microsoft site for documentation on Active-X.

hth,
Burhan





More information about the thelist mailing list