Posts: 256
Location: Auckland, New Zealand
|
Well I couldn't view the script, connection always refused.
If this script makes use of document.write() then it won't work in application/xhtml+xml;
That's all I could think could possibly be the problem with this.
Cheers,
MC
P.S - You wouldn't mind sharing your application/xhtml+xml detection script would you? I've worked on my own way of doing it, but if there's a better way I would definitely implement it. So far I have spider/bots/validators being sent it, as well as browsers that support it and browsers I know that support it but don't say they do. So here's my snippet in PHP:
PHP Code:
function is_Xhtml() { $is_Xhtml = false; if(!isset($_SERVER['HTTP_ACCEPT'])) $is_Xhtml = true; elseif(strpos($_SERVER['HTTP_ACCEPT'], 'xhtml+xml')) $is_Xhtml = true; if(!$is_Xhtml) { $supported_Useragent = array('konqueror'); foreach($supported_Useragent as $UA) { if(strpos(strtolower($_SERVER['HTTP_USER_AGENT']), $UA)) { $is_Xhtml = true; break; } } } return $is_Xhtml; }
__________________
#------------------------------ signature---------------------------------------------------------------------------------#
Quote:
|
I am well recognised for what I don't do than what I do. Chores are just one of those things.
|
Last edited by mastercomputers; 06-05-2006 at 08:37 PM..
|