bookmark - Help! - Flash & Xhtml Traditional & Strict As the title says

Help! - Flash & Xhtml Traditional & Strict - As the title says

 
 Discussion by Levis with 8 Replies.
 Last Update: December 23, 2006, 8:00 am
 
bookmark - Help! - Flash & Xhtml Traditional & Strict As the title says  
    
free web hosting
 
Hey guys,
I have not designed a website for over a year. My website is currently in constuction at http://geekfromtheforest.com/ Anyways i am able to code in strict and traditonal xhtml 1.0 but do not know how to properly code a flash object. So let see if someone can come up with a proper way to code a flash object.

This is what Macromedia recs but its dirty dirty and pointless and not valid! lol

CODE


<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">
<param name="movie" value="/flash/logo/logo.swf" />
<param name="quality" value="high" />
<embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="794" height="128"></embed>
</object>


Does anyone have any ideas how to get around this?

[

Fri Dec 22, 2006    Reply    New Discussion   


Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

CODE


<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>


This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. :P

Fri Dec 22, 2006    Reply    New Discussion   

I don't know it for sure, but I think that the <embed/> tag is not valid in any xhtml.


EDIT:

Actualy, take a look to the results of your code al the W3C Validator:

CODE

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test</title>
</head>

<body>
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">
<param name="movie" value="/flash/logo/logo.swf" />
<param name="quality" value="high" />
<embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="794" height="128"></embed>
</object>
</p>
</body>
</html>


Input that here: http://validator.w3.org/

There you can see where errors occur.

Fri Dec 22, 2006    Reply    New Discussion   

Yes embed is the issue. It's deprecated in XHTML and you should use <object> instead. For syntax check Quatrux's post.

Fri Dec 22, 2006    Reply    New Discussion   


QUOTE (Quatrux)


Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

CODE


<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128">
<param name="movie" value="images/banner.swf" />
<img src="banner.gif" width="288" height="128" alt="banner" />
</object>


This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. :P

Link: view Post: 94343



Ya, i was just really tired from studying and made that mistakes. Thanks for the code, i tried something like that but it didn't work for some reason. I see a few differences.

Fri Dec 22, 2006    Reply    New Discussion   

Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.

<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.

I don't know how to get it to work in both sets of browsers. I know that it is possible, someone from SpreadFirefox has shown me this before. It involves a comment tag that is something LIKE this:

<!--if [IE

I don't know if it is that for sure but it was something similar. That way it was still valid XHTML strict.

Hope you figure it out soon.

Sat Dec 23, 2006    Reply    New Discussion   

Well it works perfectly in Firefox and IE 7 and the code is valid by W3C standards. Thanks guys.

Sat Dec 23, 2006    Reply    New Discussion   

QUOTE (FirefoxRocks)


Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.

<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.

Link: view Post: 94391


Actually not Microsoft, but Netscape, due to the embed element was created by Netscape as their method of embedding plug ins and players in web pages, it is not part of the XHTML specification, and while some browsers other than Netscape support it, it is not standards-compliant, so it is out, it has nothing to do with IE, but eventually, IE cause a lot of problems too if you want that it would work in different browsers.

Here is a good post on how to do it with different methods, so you can choose the best one, but the method with javascript - remember, some people might have it off, there is also an example of Flash Satay code in that article, here is the link: http://blog.deconcept.com/swfobject/

Sat Dec 23, 2006    Reply    New Discussion   

Quickly Post to Help! - Flash & Xhtml Traditional & Strict As the title says w/o signup Share Info about Help! - Flash & Xhtml Traditional & Strict As the title says using Facebook, Twitter etc. email your friend about Help! - Flash & Xhtml Traditional & Strict As the title says Print
Reply / Comment Ask a Question? Share / Bookmark E-Mail a Friend Print

CSS Playground   CSS Playground (4) (3) Internationalization what method do you use for internationalization?  Internationalization what method do you use for internationalization?