|
Hi,
I am using a .htc file for the first time. In my html page I have used a CSS. This CSS file has a class 'selectHeader' as follows:
.selectHeader
{
FONT-SIZE: 8pt;
BEHAVIOR: url(selectHeader.htc);
CURSOR: hand;
BACKGROUND-COLOR: #c0c0c0
}
The selectHeader.htc file looks something like this:
<PUBLIC:COMPONENT lightweight="true">
<PUBLIC:ATTACH EVENT="ondocumentready" ONEVENT="init();" />
<PUBLIC:ATTACH EVENT="onkeypress" ONEVENT="sortTable()" />
<PUBLIC:METHOD NAME="setTBody" INTERNALNAME="sort_setTBody" />
<SCRIPT>
function init()
{
alert("In init");
}
..
function sortTable()
{
alert("in sortTable");
}
.....
........
.........(the other functions)
</SCRIPT>
The 'FONT-SIZE', 'CURSOR' and 'BACKGROUND COLOR' from the class selectHeader are applied to the <TR> correctly but there aren't any alerts from the .htc file. Just wanted to know if this is indeed the right way to access a .htc file. Can someone please help?
|
|
|
|
|
|
|
// |