Announcement

Collapse
No announcement yet.

Can't serve .htc file?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't serve .htc file?

    I'm trying to use the slider control on a page being served by the HS webserver and it just does not work.

    Here's the Microsoft example HTML:
    HTML Code:
    <HTML xmlns:control>
    <HEAD>
    <TITLE>Behavior Library: Slider</TITLE>
    
    <STYLE>
        @media all
        {
    	    control\:slider {
    	                    behavior:url(slider.htc);
    	                    }
        }
        
        H1              {
                        font: bold 18pt verdana;
                        color: navy
                        }
    	A:link { color:#003399; text-decoration:none; }
    	A:visited { color:#6699CC; text-decoration:none; }
    	A:hover { text-decoration:underline; }
    </STYLE>
    
    </HEAD>
    <BODY BGCOLOR="#ffffff" TEXT="#000000" LINK="#000066" VLINK="#666666">
    <!--TOOLBAR_START--><!--TOOLBAR_EXEMPT--><!--TOOLBAR_END-->
    
    <H1>Slider Behavior</H1>
    <P>
    <FONT FACE="verdana,arial,helvetica" SIZE=1>
    <A href="#" onclick='self.close()'><IMG ALIGN="middle" SRC="demo.gif" WIDTH="16" HEIGHT="16" BORDER="0" ALT="Click to Close Sample"></A>
    &nbsp;<A href="#" onclick='self.close()'>Close This Sample</A> 
    </FONT><HR>
    
    
    <control:slider ID="oSlider" STYLE="sl--orientation:vertical">
    </control:slider>
    
    <control:slider ID="oSlider" STYLE="position:relative; top:-150; left:50">
    </control:slider>
    
    <P>
    <HR>
    <FONT FACE="MS SANS SERIF" SIZE="1" COLOR="BLACK">
    &copy; <A HREF="http://msdn.microsoft.com/isapi/gomscom.asp?TARGET=/info/cpyright.htm" TARGET="_top">2003 Microsoft Corporation. All rights reserved. Terms of use</A>.
    </FONT>
    <P>
    </BODY>
    </HTML>
    I have placed slider.htc in the same directory as this HTML file.

    Now, if I browse to the above file directly from IE, it works properly. But, if I setup a link in HS to this page, all that gets displayed is:

    Slider Behavior
    Close This Sample
    --------------------------------------------------------------------------
    --------------------------------------------------------------------------
    &#169; 2003 Microsoft Corporation. All rights reserved. Terms of use.



    Why does the HS webserver not serve up the .htc file?
    Am I doing something wrong?
    Best regards,
    -Mark-

    If you're not out on the edge, you're taking up too much room!
    Interested in 3D maps? Check out my company site: Solid Terrain Modeling
Working...
X