You are here: Re: can we stop using activex « HTML « IT news, forums, messages
Re: can we stop using activex

Posted by cwdjrxyz@yahoo.com on 11/15/05 08:06

Toby Inkster wrote:
> code_wrong wrote:
>
> > is not <object> the w3c way?
>
> The W3C has deprecated APPLET, but it's still part of HTML 4.01
> Transitional and XHTML 1.0 Transitional, and offers the best
> backwards-compatibility of any method of including Java applets.
>
> > please be kind and illustrate the way you would do it::
>
> Like this:
>
> <APPLET code="AudioItem" width="15" height="15">
> <PARAM name="snd" value="Hello.au|Welcome.au">
> Java applet that plays a welcoming sound.
> </APPLET>
>
> Using OBJECT it would be:
>
> <OBJECT codetype="application/java"
> classid="AudioItem"
> width="15" height="15">
> <PARAM name="snd" value="Hello.au|Welcome.au">
> Java applet that plays a welcoming sound.
> </OBJECT>
>
> But the first example will work in Netscape 2+ whereas the second requires
> 6.x.

The ActiveX object given appears to be correct if you want to use AX.
An AX object, if written properly, will validate at the W3C. To avoid
problems when sites do not support AX for whatever reason, many
commercial sites add an embed within the AX object. When AX is not
supported, the embed path within the AX object is taken instead. This
usually works, but it gives the W3C validator fits. However in many
cases you can write an ordinary object in a special way so that IE6 and
other recent browsers work without calling for the special AX id. This
is what I do for audio and video on the WMP, and it even validates as
xhtml 1.1 when served with the proper mime type application/xhtml+xml.
I do not know if this approach also works for Java. AX often allows
more control of the object, but ordinary objects, written in the
correct way, often will accept the most needed paramaters for embedding
a WMP, for example, in a web page. It is interesting that the most
recent Opera browser will accept a pure AX object without another path
for the WMP. Opera most likely is not supporting AX as such, given
their attitude toward it. They most likely are using some code
work-around when only a pure AX object is met. But when you are using
Java, even if you overcome the AX problem, there are still some who
have Java turned off.

 

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

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