Help - Search - Members - Calendar
Full Version: Embed and XHTML
HTMLHelp Forums > Web Authoring > Graphics, Flash and Multimedia
Grayves
Hello again,
I am once again at a spot that I cannot seem to figure out.

The site I'm working on is actually replacing a current site. The page in question is http://www.grimco.com/equipment2.html
Now that all seems to view as planned, but when I validate that page I get;

File - !equipment2.html
Line - 216
Description - The tag name:"embed" Not found in the currently active versions.[XHTML 1.0 transitional]


From doing some checking (googling) I've realized that the <embed> tag is not recognized in W3 standards for XHTML.
The question I have is;

Is there a way to get my flash swf files placed and allow the pages to validate. I've seen some work arounds online but they seem to have different effects depending on what browser the viewer is using.

Thank you

Here is the code where my flash object is embeded:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="700" height="500" title="Equipment Offered">
<param name="movie" value="equipment_scroll.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="equipment_scroll.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" wmode="transparent" width="700" height="500"></embed>
</object>
Darin McGrew
Please see ALA's Flash Satay: Embedding Flash While Supporting Standards
pandy
Just want to clarify that this isn't a difference between XHTML and HTML. EMBED was always non-standard. Now it looks like it will be adopted by HTML 5, but that's a different matter.
Grayves
Ok cool, I've looked at that link you sent and I'll have to take some time to digest all of that.

Now another question I have is;

The Flash object will display just fine in at least 6 browsers that I've tested. The only thing is the validation. How does that really effect the page? I see pages online with the triangle ! in the corner and still see everything that I'm supposed to. I guess what I really want to know is, does the fact that the current code doesn't validate really effect the page or is it just a designers guide to try to get validation?

Sorry if that is a very amature question but it's something I don't quite get.

Thanks
Darin McGrew
Please see Why Validate?
pandy
QUOTE(Grayves @ Oct 22 2009, 04:20 PM) *

I see pages online with the triangle ! in the corner and still see everything that I'm supposed to.


How do you know? tongue.gif

QUOTE

I guess what I really want to know is, does the fact that the current code doesn't validate really effect the page or is it just a designers guide to try to get validation?


Depends on what kind of error it is. IMO some errors are more important than others because they have the potential to screw things up. Say, in a browser you didn't test in, some browsing environment you aren't aware of or cannot test in, or if you later decide to add another layer to the page, may it be JS or something else. In the case of the OBJECT/EMBED soup, I'd say it isn't dangerous to keep it there, it's just ugly. You know why you get the errors and you know the stuff works in flash enabled browsers. No biggie in my book. If you care enough you do the Flash Satay thing, otherwise it's unlikely to harm you to leave it as it is.
Grayves
Thank you again, both of you.

I'm still trying to get all the flash to display and validate correctly, and am determined to get it right.

You both have been most helpful.


Thank you!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.