codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Accessing .htc file  sweta_singh at 05:05 on Thursday, June 11, 2009
 

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?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: convert aspx page to pdf
•  Accessing .htc file
•  Access binary data from http
•  Inserting checkbox values into one field
•  Silverlight or ASPX ?
•  Export to excel
•  help in perl script
•  Re: open excel file in html page
•  online dating


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009