Click to See Complete Forum and Search --> : replacing embed with object
wayne_ca
05-22-2005, 07:27 PM
I searched and found many references to sound files. I found one reference to object tags in IE (not sure what version, as it wasn't specified) and how it messes up the objects.
I have working embed tags on my page, but HTML 4.01 validation says embed is no longer supported and I need object tags. I know nothing about object tags. Would someone explain to me how to convert my embed tags to object tags, and whether or not the problems in IE have been solved? I am trying to make my pages HTML 4.01 compliant.
jmaresca2005
05-22-2005, 08:22 PM
where u have a embed tags change to object tags and test in IE
wayne_ca
05-22-2005, 08:41 PM
where u have a embed tags change to object tags and test in IE
If it were that simple I wouldn't have needed to ask here, nevermind the useless searching I did.
To expound:
Using embed with the windows media player plugin:
<embed src="sound/mySound.wav" width="172" height="45" hspace="0"
vspace="0" autostart="false"></embed>
Using object:
<object classid="classId" codebase="codeBase" codetype="codeType"
data="data" type="type" archive="archive" name="name" width="172"
height="45" hspace="0" vspace="0" align="left" border="0"
standby="standbyText">
alternate content
</object>
As you can see, there are a multitude of differences, but the most inportant ones are the lack of a src attribute in an object tag, and the multitude of other attributes in an object tag that do not tell me what I need to know to make the modifications.
Can anyone help me with this? Now that I think of it, this was the reason I never understood the object tag... I could never find any examples and noone else knew how to use it either.
wayne_ca
05-23-2005, 07:49 PM
I found this post (http://www.webdeveloper.com/forum/showthread.php?postid=373411#post373411) in the JavaScript (http://www.webdeveloper.com/forum/forumdisplay.php?f=3) forum in the dreamweaver mx (http://www.webdeveloper.com/forum/showthread.php?t=66976) thread. I posted this reply (http://www.webdeveloper.com/forum/showthread.php?postid=373745#post373745).
Perhaps someone here can help me figure this out?
BeachSide
05-24-2005, 12:12 AM
Maybe there wasn't enough expounding going around or the pollen was up I don't know but check the first 5 or 6 links out here (http://www.google.com/search?num=100&hl=en&lr=&safe=off&q=how+to+use+the+object+tag+%2B+sound&btnG=Search)
wayne_ca
05-25-2005, 01:58 PM
The link to Dan's Web Tips - Sounds (http://webtips.dan.info/sounds.html) anwered my questions ... sortof ... as follows, an excerpt:
Microsoft zombies prefer the variant of the OBJECT element that uses the proprietary ActiveX interface, keyed on a grotesquely cryptic "class ID"...
A more standards-based object method, identifying the media type by MIME type instead of tagging it to a specific program, goes like this...
But, naturally, it's completely ignored by MSIE, as far as I can see. You can, however, nest the two above pieces of code by putting one of those OBJECT elements within the other, so that, hopefully everybody's browser that supports one or the other technique will find something to do.
So, if I want to be HTML 4.01 compliant, I have to nest 2 object tags in order to make most browsers happy. And what about older browsers who don't understand the object tag? Sheesh ... what's the use of trying to be compliant when you have this much trouble and it still won't work on some browsers?
And I really need this functionality, because my client is using sample sounds to give her customers a way to determine if they want to purchase the sound files she's selling.
Since embed works on most browsers (not sure about some of the newer ones), and I'm not so sure anyone is still using browsers older than netscape navigator 4 or msie 4, the question becomes, do I really need to be fully compliant with HTML 4.01 in this regard? Or should I opt for what works for the majority of the customers my client will have?