Reply to Re: Flash doesn`t work on valid XHTML page

Your name:

Reply:


Posted by cwdjrxyz on 04/26/07 07:40

On Apr 25, 12:50 pm, "MZ" <marcinzmyslow...@poczta.onet.pl> wrote:
> Hello!
>
> Could you help me how to write a code which is responsible for flash banner?
> I want to implement a cod which will be xhtml valid.
>
> Now I have a valid XHTML, but my flash run code is not good, because I see
> blank flash banner on my page on Firefox
>
> Here is my page:http://www.poradnia.bydgoszcz.pl/
>
> Can you help me?
>
> Thank you in advance
> Marcin

Flash can be made to work even on a valid xhtml 1.1 page. See an
example at http://www.cwdjr.info/video_extreme/cancanFLV.php . Note
this this page contains a high resolution flash video that requires a
good broadband connection to start streaming without undue buffering
time. If you look at the source code, you will find that the page is
served as xhtml 1.1 using the proper mime type application/xhtml+xml
for browsers that indicate they can understand xhtml in the header
exchange. However the page is served as xtml 4.01 strict using the
usual mime type text/html for browsers that do not indicate they can
handle xhtml in the header exchange. One or two of the lesser used
browsers can actually handle xhtml, but will not tell you in the
header exchange, so it is not safe to serve them xhtml because browser
detection is no longer reliable. A php include does the header
exchange bit and writes the page as xhtml or html depending on what it
finds. All IE browsers, even including IE7, can not handle xhtml
properly served with mime type application/xhtml+xml. If you will view
my page source on IE or other browser that can not handle xhtml, you
will see it is served as html 4.01. Some people write an xhtml page
and then serve it as something.html. In nearly all browsers, .html is
associated with mime type text/html. If you want to serve a page as
true xhtml, on the server you have to associate mime type application/
xhtml+xml with another extension, often .xhtml, sometimes .xml . Thus
unless you want to go to all of this trouble, I suggest you use html
4.01 strict. Serving a page with xhtml code that might be called
something.html is just text/html, and offers no advantage over html
4.01 strict.

[Back to original 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

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