title: ActiveX on Windows 7 throws "Object doesn't support property or method" error
body: <p>We have a third-party ActiveX. It seems to be working fine on a Windows XP machine (Internet Explorer 7). However, when we test on Windows 7 Professional 64-bit (Internet Explorer 9), we receive an error message -- "Object doesn't support property or method '{methodname}'"</p>
  
  <p>Anyone knows what could be causing this?</p>
  
  <ul>
  <li><p>Is there a problem with the OS -- security is tighter, therefore the assembly needs something?  </p></li>
  <li><p>Is there a problem with the browser -- again, maybe security is tighter, therefore something in Tools >> Internet Options >> Security needs to be adjusted?</p></li>
  </ul>
  
  <p>Thoughts or suggestions would be greatly appreciated!</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;body onload="OpenActiveX()"&gt;
      &lt;OBJECT id="OurActiveX" 
          name=”OurActiveX" 
          classid="clsid:43663B77-905C-4885-BC6B-4F57FE10A270" 
          VIEWASTEXT codebase="CS1504CAB.cab"&gt;
      &lt;/OBJECT&gt;
  
      &lt;script language="javascript"&gt;
          function OpenActiveX()
          {
              try
              {
                  alert(document.OurActiveX.Echo("Hi I am here."));
                  var sdata = document.OurActiveX.GetData();
                  if(sdata == "0"){
                      document.getElementById("barcodes").innerHTML = "No barcodes found.";
                  }
                  else if( sdata == "1"){
                      document.getElementById("barcodes").innerHTML = "Could not find the barcode reader.";
                  }
                  else{
                      var adata = sdata.split(":");
                      document.getElementById("barcodes").innerHTML = adata[0] + "&lt;BR/&gt;" + adata[1];
                  }
              }
              catch(Err)
              { 
                  alert(Err.description);
              }
          }
      &lt;/script&gt; 
  &lt;div id="barcodes" /&gt;
  </code></pre>