Just a slight XHTML problem...
Moderator: General Moderators
Just a slight XHTML problem...
Er, I'm probably not the first person to run into this XHTML 'glitch' so I'm hoping someone knows a work-a-round for it.
Putting a Flash movie into a webpage requires both the <embed> and <object> tags for different browsers. IE uses the <object> tag while NS uses the <embed> tag.
Now the problem is that XHTML doesn't allow the use of the <embed> tag.. which means any browsers that use/need it won't be able to display Flash movies in an XHTML document.
Is there a replacement for the <embed> tag or has the God of XHTML just cocked things up big time?
Putting a Flash movie into a webpage requires both the <embed> and <object> tags for different browsers. IE uses the <object> tag while NS uses the <embed> tag.
Now the problem is that XHTML doesn't allow the use of the <embed> tag.. which means any browsers that use/need it won't be able to display Flash movies in an XHTML document.
Is there a replacement for the <embed> tag or has the God of XHTML just cocked things up big time?
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
Yes but that defeats the whole purpose of writing an XHTML document. It's not just about the validation it's wether or not the document IS a valid XHTML document, not just a hack job.microthick wrote:Use JavaScript to document.write the needed code for embed. It'll pass through validation fine.
Anyway as far as I know if you have the correct document type and headers so that your document is a true XHTML document then things like the <embed> tag won't work anyway, regardless of how you get them into the document.
After reading this post I found this article, it might help?
http://www.alistapart.com/articles/flashsatay/
http://www.alistapart.com/articles/flashsatay/
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
rofl.Gen-ik wrote:Yes but that defeats the whole purpose of writing an XHTML document. It's not just about the validation it's wether or not the document IS a valid XHTML document, not just a hack job.microthick wrote:Use JavaScript to document.write the needed code for embed. It'll pass through validation fine.
Anyway as far as I know if you have the correct document type and headers so that your document is a true XHTML document then things like the <embed> tag won't work anyway, regardless of how you get them into the document.
css and xhtml is all about the hacks, dude.
until we rid the world of ns4, ie5, and all ie's on mac, people will forever be using hacks to make their work display properly.
Aha you is d'mannigma wrote:After reading this post I found this article, it might help?
http://www.alistapart.com/articles/flashsatay/
Thanks mate.
See Mircothick, there are ways of working with XHTML and CSS that don't require any nasty and 'non-standard' hacks... just takes a bit of brain work, patience, and Googling
Code: Select all
<object type="application/x-shockwave-flash
data="c.swf?path=movie.swf"
width="400" height="300">
<param name="movie"
value="c.swf?path=movie.swf" />
</object>only one way to do that is to stop writing for netscape 4.x (which is being done since it has end-of-life so places that make those special software that held things up have moved to mozilla1.3.1/ie5.5) and i'm not gonna get into the mac part of that...microthick wrote:until we rid the world of ns4, ie5, and all ie's on mac, people will forever be using hacks to make their work display properly.
-
microthick
- Forum Regular
- Posts: 543
- Joined: Wed Sep 24, 2003 2:15 pm
- Location: Vancouver, BC
unfortunately, the MegaSuperInternet Corp. that I work for still makes us program web stuff so that it works for ns4.61, ie5.5, and ns7.02, so i'm always having to compromise.
my personal stuff ensures that things work properly on ns4, but usually just so that it works... like you said, the only way we're gonna get rid of ns4 is by stopping programming for it.
my personal stuff ensures that things work properly on ns4, but usually just so that it works... like you said, the only way we're gonna get rid of ns4 is by stopping programming for it.