title: activex component not loading from apache xampp
body: <p>I am developing a web app in which fingerprint recognition is being used. I am using XAMPP on windows, working with a SECUGEN fingerprint device and the API provided by them. They gave a sample html file in which they are using activex component to access fingerprint device from the browser. It is working well and good when i try to access through <code>D:\files\sample.html</code>. i am getting a prompt that "the current page needs an activex component, when i say 'yes' its ready to use."</p>
  
  <p>But, the problem starts here. I moved that file (sample.html) to htdocs of XAMPP server and tried to access it through <code>http://localhost/app/sample.html</code>, the activex component is not being loaded i guess.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>&lt;!DOCTYPE Html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;ActiveX Example 1.1 of SecuGen FDx Pro SDK &lt;/title&gt;
  
  &lt;script type="text/javascript"&gt;
  &lt;!--
  var aaa = 0;
  function fnOpenDevice()
  {
      for ( i=0; i&lt;3; i++)
      {
          document.frmmain.objFP[i].DeviceID = document.frmmain.inc.value;
          document.frmmain.objFP[i].CodeName = document.frmmain.dev.value;
          document.frmmain.objFP[i].MinutiaeMode = document.frmmain.templateFormat.value;
      }
  
      // template format of objVerify should be the same to those of objFP[]
      objVerify.MinutiaeMode = document.frmmain.templateFormat.value;
      return;
  }
  
  function fnCapture(idx)
  {
      document.frmmain.objFP[idx].Capture();
      var result = document.frmmain.objFP[idx].ErrorCode;
      if (result == 0)
      {   
          //var strimg1 = objFP.ImageTextData;
  
          var strmin = document.frmmain.objFP[idx].MinTextData;
          document.frmmain.min[idx].value = strmin;
      }
      else
          alert('failed - ' + result);
  
      return;
  }
  
  function fnRegister()
  {
      var strmin1 = document.frmmain.min[0].value;
      var strmin2 = document.frmmain.min[1].value;
  
      if ( objVerify.RegisterForText(strmin1, strmin2) &amp;&amp; objVerify.ErrorCode == 0 )
          alert('success- registered');
      else
          alert('failed - ' + objVerify.ErrorCode);
  
      return;
  }
  
  function fnVerifyEx()
  {   
      var strmin1 = document.frmmain.min[0].value;
      var strmin2 = document.frmmain.min[1].value;
      var strmin3 = document.frmmain.min[2].value;
  
      if ( objVerify.VerifyExForText(strmin1, strmin2, strmin3) &amp;&amp; objVerify.ErrorCode == 0)
          alert('Success - matched');
      else
          alert('Failed - ' + objVerify.ErrorCode);
  
      return;
  }
  
  function fnVerify()
  {   
      var strmin1 = document.frmmain.min[0].value;
      var strmin2 = document.frmmain.min[2].value;
  
      if ( objVerify.VerifyForText(strmin1, strmin2) &amp;&amp; objVerify.ErrorCode == 0 )
          alert('Success - matched');
      else
          alert('Failed - ' + objVerify.ErrorCode);
  
      return;
  }
  
  function fnSetimage()
  {
      document.frmmain.objFP.ImageTextData = document.frmmain.img1.value;
  
      return;
  }
  // --&gt;
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h4&gt;&lt;b&gt;ActiveX Example 1.1 of SecuGen FDx Pro SDK&lt;/b&gt;&lt;/h4&gt;
  &lt;p&gt;&lt;/p&gt;
  
  &lt;OBJECT id="objVerify" style="LEFT: 0px; TOP: 0px" height=0 width=0 
      classid="CLSID:8D613732-7D38-4664-A8B7-A24049B96117" 
      name=objVerify VIEWASTEXT&gt;
  &lt;/OBJECT&gt;
  
  &lt;form name=frmmain&gt;
  
  Device Type :
  &lt;select name="dev"&gt;
  &lt;option value="0"&gt;FDP02
  &lt;option value="1"&gt;FDU02
  &lt;option value="2"&gt;FDU03
  &lt;option selected value="3"&gt;FDU04
  &lt;option value="4"&gt;FDU05
  
  &lt;/select&gt;
  
  Instance No. :
  &lt;select name="inc"&gt;
  &lt;option value="-1"&gt;-1   
  &lt;option value="0" selected&gt;0
  &lt;option value="1"&gt;1
  &lt;option value="2"&gt;2
  &lt;option value="3"&gt;3
  &lt;option value="4"&gt;4
  &lt;option value="5"&gt;5
  &lt;option value="6"&gt;6
  &lt;option value="7"&gt;7
  &lt;option value="8"&gt;8
  &lt;option value="9"&gt;9
  &lt;/select&gt;
  
  &lt;p&gt;
  Template Format:
  &lt;select name="templateFormat"&gt;
  &lt;option value="256"&gt;ANSI 378
  &lt;option value="512"&gt;SG 400
  &lt;option value="768"&gt;ISO 19794-2
  &lt;/select&gt;
  
  &lt;input type="button" name="open" value='Open Device' OnClick='fnOpenDevice();'&gt;
  &lt;p&gt;
  
  &lt;table border="1" cellspacing="0" cellpadding="0"&gt;
  &lt;caption&gt; Fingerprint Images &lt;/caption&gt;
  &lt;tr&gt;
  &lt;td&gt;
      &lt;OBJECT id="objFP" style="LEFT: 0px; WIDTH: 149px; TOP: 0px; HEIGHT: 182px" height="182" 
          width="149" classid="CLSID:D547FDD7-82F6-44e8-AFBA-7553ADCEE7C8" name="objFP" VIEWASTEXT&gt;
      &lt;PARAM NAME="CodeName" VALUE="1"&gt;
      &lt;/OBJECT&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;OBJECT id="objFP" style="LEFT: 0px; WIDTH: 149px; TOP: 0px; HEIGHT: 182px" height="182" 
          width="149" classid="CLSID:D547FDD7-82F6-44e8-AFBA-7553ADCEE7C8" name="objFP" VIEWASTEXT&gt;
      &lt;PARAM NAME="CodeName" VALUE="1"&gt;
      &lt;/OBJECT&gt;
  &lt;/td&gt;
  &lt;td&gt;
      &lt;OBJECT id="objFP" style="LEFT: 0px; WIDTH: 149px; TOP: 0px; HEIGHT: 182px" height="182" 
          width="149" classid="CLSID:D547FDD7-82F6-44e8-AFBA-7553ADCEE7C8" name="objFP" VIEWASTEXT&gt;
      &lt;PARAM NAME="CodeName" VALUE="1"&gt;
      &lt;/OBJECT&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
  &lt;td align="center"&gt;&lt;input type="button" name="btnCapture1" value='Capture' OnClick='fnCapture(0);'&gt;&lt;/td&gt;
  &lt;td align="center"&gt;&lt;input type="button" name="btnCapture2" value='Capture' OnClick='fnCapture(1);'&gt;&lt;/td&gt;
  &lt;td align="center"&gt;&lt;input type="button" name="btnCapture3" value='Capture' OnClick='fnCapture(2);'&gt;&lt;/td&gt;
  &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;p&gt;
  
  min1 : &lt;input type="text" name="min"&gt;&lt;br&gt;
  min2 : &lt;input type="text" name="min"&gt;&lt;br&gt;
  min3 : &lt;input type="text" name="min"&gt;
  &lt;p&gt;
  &lt;input type="button" name="btnRegister" value='Register' OnClick='fnRegister();' style='width:200px'&gt;
  &lt;br&gt;
  &lt;input type="button" name="btnVerify" value='VerifyEx' OnClick='fnVerifyEx();' style='width:200px'&gt;
  &lt;br&gt;
  &lt;input type="button" name="btnVerify" value='Verify' OnClick='fnVerify();' style='width:200px'&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>What may be the problem? Please let me know if any other information is required.</p>