You are here: Re: Trouble embedding ActiveX object in HTML using object tag « HTML « IT news, forums, messages
Re: Trouble embedding ActiveX object in HTML using object tag

Posted by cwdjrxyz@yahoo.com on 11/29/05 01:02

Chris Lieb wrote:
> Hi,
>
> I am trying to embed an ActiveX control that handles barcode scanner
> input in a HTML page. It works fine on the computer that I developed
> the control on since VB automatically registers ActiveX controls when
> it builds them. However, when I try to open the page on another
> computer, instead of the control, I get a standard IE placeholder.
> Here is the code that I am using:
>
> <object
> name="barcodeTest"
> classid="clsid:C9575896-B228-4B1C-A854-6B0DA7F9BFD9"
> codebase="http://ilhodsvr02b6/development/phh5cjl/apps/inventory/activex/barcodegetter.cab"
> standby="Loading..."
> type="application/x-oleobject"
> width="350"
> height="25">
> <param name="value" value="param" />
> </object>
>
> The path in the codebase is correct because I tried copying and pasting
> it into a browser and it tried to download it. I am assuming that the
> CLSID is correct because the control displays properly on my
> development machine. I tried setting the codebase to point to the OCX
> and also appending a #version=1,0,0,0 to both the CAB and OCX paths
> (the file is version 1.0.0.0), but this caused no change.
>
> Does anyone know what is going on? This is really bugging me since it
> looks like everything is correct and inline with many examples that I
> have found on the web.

I am not certain what is going on, from what you gave. Is it possible
that ActiveX is turned off for the second computer? If I remember
correctly, when you upgraded to SP2, ActiveX and some other hacker
favorites had to be enabled if you wanted the browser to use them. Your
wording seems to indicate that the second computer is using an IE
browser which should handle AX. However most other browsers will not
handle ActiveX at all or require a special plugin to do so. I have no
experience with barcodes. However, in many other cases where an ActiveX
object is used, an ordinary object can be found that will do the same
thing. If not, many include an embed within the AX object for browsers
that will not handle AX. This approach is bad html, but it seems to
work for many browsers that can not handle AX.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация