Website Critiques
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignWebsite Critiques

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old July 7th, 2004, 12:05 PM
Akh's Avatar
Akh Akh is offline
|<.+#f@#+.&.|
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Mar 2002
Location: norway
Posts: 2,650 Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level)Akh User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 3 Weeks 6 Days 17 h 8 m 53 sec
Reputation Power: 588
you need to do it serverside,
it isn't enought just put a meta-tag in the document when the server still delivers it as text/html.

to check you can use ctrl+i or right-click ->'page info' in mozilla,

but as there is some browsers out there that doesn't support application/xhtml+xml (msie and k-html), you ought to use xhtml 1.0 strict instead of xhtml1.1

Reply With Quote
  #17  
Old July 7th, 2004, 01:22 PM
Bza Bza is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Norway
Posts: 15 Bza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 48 sec
Reputation Power: 0
Send a message via MSN to Bza
Hmm, I tried adding this to the top of the php file:
Code:
header("content-type: application/xhtml+xml");

but then the document was parsed as an xml file. (Firefox) I just did it to test it, so it's gone now, but is this the result of the lack of support for this? If not, how do I then force the document type to something else than text/html?

Reply With Quote
  #18  
Old July 7th, 2004, 01:58 PM
Bza Bza is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Norway
Posts: 15 Bza User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 48 sec
Reputation Power: 0
Send a message via MSN to Bza
I found a method for solving this:
Code:
$charset = "iso-8859-1";
$mime    = (stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) ? "application/xhtml+xml" : "text/html";
header("content-type:$mime;charset=$charset");

and
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

ensures that browsers supporting application/xhtml+xml will get this, while those not get text/html.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignWebsite Critiques > http://www.bzabza.com


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway