Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
XHTML + JavaScript = Trouble
Old 06-03-2006, 10:07 PM XHTML + JavaScript = Trouble
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 201
Trades: 0
Hi,

Look at The Web Design Journal.com.

Why does the AdBrite JavaScript only load in Internet Explorer 6 and not Opera nor Firefox?

This occured after I changed my content-type accept headers to application/xhtml+xml. Of course IE6 and other browsers without support for XHTML whould get the page e as text/html.

But I still do not see why this change whould corrupt the JavaScript.
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-04-2006, 02:45 PM Re: XHTML + JavaScript = Trouble
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
All I can say is if the script were written correctly it should work when sending application/xhtml+xml as the mime-type of the document. So I would question how well the script was written since I've never had problems with javascript and using application/xhtml+xml for my sites.

Cheers,

MC
__________________
#------------------------------signature---------------------------------------------------------------------------------#
Quote:
I am well recognised for what I don't do than what I do. Chores are just one of those things.
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Old 06-04-2006, 03:02 PM Re: XHTML + JavaScript = Trouble
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
I don't see the Adbrite Javascript. Where is it?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 06-04-2006, 04:48 PM Re: XHTML + JavaScript = Trouble
Moldarin's Avatar
Extreme Talker

Latest Blog Post:
Keyword Density and Title Tags
Posts: 201
Trades: 0
Code:
<script type="text/javascript" src="http://4.adbrite.com/mb/text_group.php?sid=98201&amp;col=2&amp;br=1&amp;dk=77656220686f7374696e675f325f31"></script>
__________________
I do not share ad revenue.
Moldarin is offline
Reply With Quote
View Public Profile
 
Old 06-05-2006, 08:28 PM Re: XHTML + JavaScript = Trouble
Ultra Talker

Posts: 256
Location: Auckland, New Zealand
Trades: 0
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..
mastercomputers is offline
Reply With Quote
View Public Profile Visit mastercomputers's homepage!
 
Reply     « Reply to XHTML + JavaScript = Trouble
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16687 seconds with 12 queries